diff options
Diffstat (limited to 'Tests/SystemInformation/CMakeLists.txt')
-rw-r--r-- | Tests/SystemInformation/CMakeLists.txt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Tests/SystemInformation/CMakeLists.txt b/Tests/SystemInformation/CMakeLists.txt index 8fbba95..93d93c6 100644 --- a/Tests/SystemInformation/CMakeLists.txt +++ b/Tests/SystemInformation/CMakeLists.txt @@ -6,11 +6,17 @@ CONFIGURE_FILE(${DumpInformation_SOURCE_DIR}/DumpInformation.h.in ${DumpInformation_BINARY_DIR}/DumpInformation.h) ADD_EXECUTABLE(DumpInformation DumpInformation.cxx) -WRITE_FILE(${DumpInformation_BINARY_DIR}/AllVariables.txt "") -GET_CMAKE_PROPERTY(VARS VARIABLES) -FOREACH(var ${VARS}) - WRITE_FILE(${DumpInformation_BINARY_DIR}/AllVariables.txt - "${var} \"${${var}}\"" APPEND) - #MESSAGE(STATUS "Variable ${var} \"${${var}}\"") -ENDFOREACH(var ${VARS}) +FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt "") +GET_CMAKE_PROPERTY(res VARIABLES) +FOREACH(var ${res}) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllVariables.txt + "${var} \"${${var}}\"\n") +ENDFOREACH(var ${res}) + +FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AllCommands.txt "") +GET_CMAKE_PROPERTY(res COMMANDS) +FOREACH(var ${res}) + FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AllCommands.txt + "${var}\n") +ENDFOREACH(var ${res}) |