diff options
author | David Cole <david.cole@kitware.com> | 2009-01-23 18:36:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-01-23 18:36:22 (GMT) |
commit | c58f2a583078397b21daa2a3d763c7820de46ad4 (patch) | |
tree | b7b4efa45979cc46fa97149796dae5bea8cef980 /Modules/CPack.cmake | |
parent | 29ba1aa77aceb090929a361457ac8cd97d7c3b4d (diff) | |
download | CMake-c58f2a583078397b21daa2a3d763c7820de46ad4.zip CMake-c58f2a583078397b21daa2a3d763c7820de46ad4.tar.gz CMake-c58f2a583078397b21daa2a3d763c7820de46ad4.tar.bz2 |
ENH: Turn off CPACK_BINARY_TBZ2 and CPACK_BINARY_ZIP by default. Strictly speaking, this changes behavior from cpack 2.6, but now that cpack returns a non-zero exit code when it encounters an error, and it is an error to try to use a generator that is not available... It makes sense to turn these off by default since not everybody has these generators installed. It is easy for a project to turn these options back on if they need to: simply set(CPACK_BINARY_TBZ2 ON) or set(CPACK_BINARY_ZIP ON) before include(CPack) in your CMakeLists.txt...
Diffstat (limited to 'Modules/CPack.cmake')
-rw-r--r-- | Modules/CPack.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CPack.cmake b/Modules/CPack.cmake index d7685cd..553ceea 100644 --- a/Modules/CPack.cmake +++ b/Modules/CPack.cmake @@ -716,14 +716,14 @@ if(NOT CPACK_GENERATOR) endif(APPLE) option(CPACK_BINARY_STGZ "Enable to build STGZ packages" ON) option(CPACK_BINARY_TGZ "Enable to build TGZ packages" ON) - option(CPACK_BINARY_TBZ2 "Enable to build TBZ2 packages" ON) + option(CPACK_BINARY_TBZ2 "Enable to build TBZ2 packages" OFF) option(CPACK_BINARY_DEB "Enable to build Debian packages" OFF) option(CPACK_BINARY_RPM "Enable to build RPM packages" OFF) option(CPACK_BINARY_NSIS "Enable to build NSIS packages" OFF) endif(CYGWIN) else(UNIX) option(CPACK_BINARY_NSIS "Enable to build NSIS packages" ON) - option(CPACK_BINARY_ZIP "Enable to build ZIP packages" ON) + option(CPACK_BINARY_ZIP "Enable to build ZIP packages" OFF) endif(UNIX) cpack_optional_append(CPACK_GENERATOR CPACK_BINARY_BUNDLE Bundle) |