We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See Build Configurations for more details.
In several places, there is still code that checks CMAKE_BUILD_TYPE to set specific compiler flags or defines. Such code is problematic:
Generator expressions should be used instead to handle configuration-specific logic correctly, regardless of the generator used. For example:
# Works correctly for both single and multi-config generators target_compile_definitions(exe1 PRIVATE $<$<CONFIG:Debug>:DEBUG_BUILD> )
The text was updated successfully, but these errors were encountered:
857d299
abdes
No branches or pull requests
See Build Configurations for more details.
In several places, there is still code that checks CMAKE_BUILD_TYPE to set specific compiler flags or defines. Such code is problematic:
Generator expressions should be used instead to handle configuration-specific logic correctly, regardless of the generator used. For example:
The text was updated successfully, but these errors were encountered: