[cmake-commits] andy committed PackageScript.cmake NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Oct 12 13:30:02 EDT 2006


Update of /cvsroot/CMake/CMake/Tests/SimpleInstall
In directory public:/mounts/ram/cvs-serv11325

Added Files:
	PackageScript.cmake 
Log Message:
ENH: Several CPack fixes. First, allow user to set CMAKE_MODULE_PATH for CPack; make SetOptionIfNotSet more robust to handle empty options; do test TGZ, STGZ, and TZ, Add handling (and test) of Install Script; set environment variable CMAKE_INSTALL_PREFIX


--- NEW FILE: 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(var ${res})




More information about the Cmake-commits mailing list