1 get_directory_property( DirDefs COMPILE_DEFINITIONS )
3 # Reset the definition file
4 file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "")
5 foreach( d ${DirDefs} )
7 message( STATUS "Compiler Definition: " ${d} )
9 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions ${d})
10 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "\n")