[CMake] FYI: Listing CMake variables

Fernando Cacciola fernando.cacciola at gmail.com
Wed Mar 26 17:29:29 EDT 2008


Hi people, just wanted to share this: the following 4 lines print all cmake 
variables and their values.

get_cmake_property( P VARIABLES )
foreach( VAR in ${P} )
  message( STATUS "  ${VAR}=${${VAR}}" )
endforeach()

Best


-- 
Fernando Cacciola
SciSoft
http://fcacciola.50webs.com
http://groups.google.com/group/cppba





More information about the CMake mailing list