Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CMake] Use list for storing flags for target_compile_definitions #1233

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

p12tic
Copy link
Contributor

@p12tic p12tic commented Sep 21, 2022

It turns out that Visual Studio generator do not split the definitions string passed to target_compile_definitions using spaces as separators, like on other generators such as Ninja. Multiple definitions thus need to passed as a list.

This PR fixes b7184ee

@p12tic
Copy link
Contributor Author

p12tic commented Sep 26, 2022

@fabiencastan Without this PR builds on Windows will fail on current develop branch.

simogasp
simogasp previously approved these changes Sep 26, 2022
It turns out that Visual Studio generator do not split the definitions
string passed to target_compile_definitions using spaces as separators,
like on other generators such as Ninja. Multiple definitions thus need
to passed as a list.
@fabiencastan fabiencastan merged commit 34da720 into alicevision:develop Sep 27, 2022
@p12tic p12tic deleted the fix-msvc-build branch September 29, 2022 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants