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

Add Preprocessor option for MSVC in CMakeLists.txt #746

Open
Lubart opened this issue May 1, 2023 · 0 comments
Open

Add Preprocessor option for MSVC in CMakeLists.txt #746

Lubart opened this issue May 1, 2023 · 0 comments

Comments

@Lubart
Copy link

Lubart commented May 1, 2023

Can preprocessor option (Enable preprocessor conformance mode) be added to CMakeLists.txt.
That option is:

if (MSVC)
add_compile_options(/Zc:preprocessor)
endif()

In order to have it already in VC project options.
https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor?view=msvc-170

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

No branches or pull requests

1 participant