summaryrefslogtreecommitdiff
path: root/definitionsconsistencycheck.cmake
blob: 51a70f72096b17dbb1a858223709217778b1d12f (plain)
1
2
3
4
5
6
7
8
9
10
11
get_directory_property( DirDefs COMPILE_DEFINITIONS )

# Reset the definition file
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "")
foreach( d ${DirDefs} )
    if($ENV{VERBOSE})
        message( STATUS "Compiler Definition: " ${d} )
    endif($ENV{VERBOSE})
    file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions ${d})
    file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cmake.definitions "\n")
endforeach()