diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-27 15:58:20 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-27 15:58:20 (GMT) |
commit | ee227d3af5c0d5abcb8816e34809df60b9665ec1 (patch) | |
tree | 2575658691b780ee4f6a4e0d8d059639e6925b54 /Modules/CPack.cmake | |
parent | ac99baa44d985ddbf6f767090c49583bdd8f1aa4 (diff) | |
download | CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.zip CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.tar.gz CMake-ee227d3af5c0d5abcb8816e34809df60b9665ec1.tar.bz2 |
ENH: Several packaging issues. Allow random variables to be passed to cpack (anything starting with CPACK_, add preinstall to the list of dependencies for package, fix typos
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r-- | Modules/CPack.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index 2a80741..9b3689d 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -82,4 +82,13 @@ IF(CMake_INSTALL_SYSTEM_RUNTIME_LIBS) ENDIF(WIN32) ENDIF(CMake_INSTALL_SYSTEM_RUNTIME_LIBS) +SET(_CPACK_UNUSED_VARIABLES_) +GET_CMAKE_PROPERTY(res VARIABLES) +FOREACH(var ${res}) + IF("xxx${var}" MATCHES "xxxCPACK") + SET(_CPACK_OTHER_VARIABLES_ + "${_CPACK_OTHER_VARIABLES_}\nSET(${var} \"${${var}}\")") + ENDIF("xxx${var}" MATCHES "xxxCPACK") +ENDFOREACH(var ${res}) + CONFIGURE_FILE("${cpack_input_file}" "${CMAKE_BINARY_DIR}/CPackConfig.cmake" @ONLY IMMEDIATE) |