mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
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
This commit is contained in:
10
Tests/SimpleInstall/PackageScript.cmake
Normal file
10
Tests/SimpleInstall/PackageScript.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
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})
|
||||
|
||||
10
Tests/SimpleInstallS2/PackageScript.cmake
Normal file
10
Tests/SimpleInstallS2/PackageScript.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user