Check out my first novel, midnight's simulacra!

CMake: Difference between revisions

From dankwiki
No edit summary
No edit summary
Line 17: Line 17:
message(STATUS "Requested build mode: ${CMAKE_BUILD_TYPE}")
message(STATUS "Requested build mode: ${CMAKE_BUILD_TYPE}")
</pre>
</pre>
 
Build types can be added. I thought this might be useful for a <tt>Coverage</tt> target, but I ended up stuffing the coverage flags into <tt>CMAKE_C_FLAGS_DEBUG</tt>/<tt>CMAKE_CXX_FLAGS_DEBUG</tt>.
==Debugging==
==Debugging==
Dump all current variables with:
Dump all current variables with: