[CMake] shell level access to values of cmake variables

vagn scott vagnscott at gmail.com
Thu Nov 10 12:48:06 EST 2011



in my CMakeLists.txt file I have a statement

project(hello_foo_baz)

This defines PROJECT_NAME among other things.

is there something like

         cmake --dump-var PROJECT_NAME

that would output the string

         hello_foo_baz

TIA,

vagn



More information about the CMake mailing list