https://github.com/Kitware/CMake
Revision b494308dab7ca3fe94ce558ddddc71bcaf1a8e6d authored by Sebastian Holtermann on 13 September 2017, 16:31:50 UTC, committed by Brad King on 13 September 2017, 19:07:46 UTC
1 parent d0f1581
Raw File
Tip revision: b494308dab7ca3fe94ce558ddddc71bcaf1a8e6d authored by Sebastian Holtermann on 13 September 2017, 16:31:50 UTC
Autogen: Tests: Backport tests for _autogen target dependencies
Tip revision: b494308
PackageScript.cmake
message("This is packaging script")
message("It writes a file with all variables available in ${CMAKE_INSTALL_PREFIX}/AllVariables.txt")

file(WRITE ${CMAKE_INSTALL_PREFIX}/AllVariables.txt "")
get_cmake_property(res VARIABLES)
foreach(var ${res})
  file(APPEND ${CMAKE_INSTALL_PREFIX}/AllVariables.txt
             "${var} \"${${var}}\"\n")
endforeach()

back to top