diff options
author | David Cole <david.cole@kitware.com> | 2007-12-26 16:57:13 -0500 |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-12-26 16:57:13 -0500 |
commit | 764f6838a75edd42c4b78dd50c539896790b2229 (patch) | |
tree | 112e848b9a9d59d63956fdbdb047df1430f967c4 /CMakeCPackOptions.cmake.in | |
parent | ad788fe4c8915a3ef71e1bdf09d124dace4b78ca (diff) | |
download | cmake-764f6838a75edd42c4b78dd50c539896790b2229.tar.gz |
ENH: Give Mac installers package relocation capability. Default location is still the same for backwards compatibility, but packages will now be relocatable by default like they are on Windows via the NSIS installer. New CPack variables for controlling this functionality are CPACK_PACKAGE_DEFAULT_LOCATION and CPACK_PACKAGE_RELOCATABLE.
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r-- | CMakeCPackOptions.cmake.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in index 9175a5e974..6810b337d7 100644 --- a/CMakeCPackOptions.cmake.in +++ b/CMakeCPackOptions.cmake.in @@ -34,3 +34,7 @@ if(CPACK_GENERATOR MATCHES "CygwinSource") SET(CPACK_SOURCE_IGNORE_FILES "/CVS/" "/\\.build/" "/\\.svn/" "\\.swp$" "\\.#" "/#" "~$") endif(CPACK_GENERATOR MATCHES "CygwinSource") + +if("${CPACK_GENERATOR}" STREQUAL "PackageMaker") + SET(CPACK_PACKAGING_INSTALL_PREFIX "/usr") +endif("${CPACK_GENERATOR}" STREQUAL "PackageMaker") |