Check out my first novel, midnight's simulacra!

CMake: Difference between revisions

From dankwiki
(jfc)
No edit summary
Line 16: Line 16:
endif()
endif()
message(STATUS "Requested build mode: ${CMAKE_BUILD_TYPE}")
message(STATUS "Requested build mode: ${CMAKE_BUILD_TYPE}")
</pre>
==Debugging==
Dump all current variables with:
<pre>
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
    message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
</pre>
</pre>