Anonymous

Difference between revisions of "CMake"

From dankwiki
247 bytes added ,  05:12, 9 May 2020
no edit summary
(jfc)
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>