Created
August 29, 2017 21:42
-
-
Save mcleary/59ce1c667d1b3df08ea831e31f7941f2 to your computer and use it in GitHub Desktop.
How to print the compiler definitions in a CMake project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_directory_property( DirDefs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS ) | |
foreach( d ${DirDefs} ) | |
message( STATUS "Found Define: " ${d} ) | |
endforeach() | |
#message( STATUS "DirDefs: " ${DirDefs} ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment