diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-18 20:40:40 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-18 20:40:40 (GMT) |
commit | 9a64e11474dfcf58c388e270731f19f3414c46fa (patch) | |
tree | bf958c6280650ea016b442abea98fb44b91c4f80 /CMakeLists.txt | |
parent | 0d57f4a3ead49e5c0abc074fb24db517a1dd3e7c (diff) | |
download | CMake-9a64e11474dfcf58c388e270731f19f3414c46fa.zip CMake-9a64e11474dfcf58c388e270731f19f3414c46fa.tar.gz CMake-9a64e11474dfcf58c388e270731f19f3414c46fa.tar.bz2 |
ENH: make cpack names match old cmake release processv2.4.0
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 964479d..bc1d8c5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -242,7 +242,20 @@ IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake") SET(CPACK_PACKAGE_VERSION_MAJOR "${CMake_VERSION_MAJOR}") SET(CPACK_PACKAGE_VERSION_MINOR "${CMake_VERSION_MINOR}") SET(CPACK_PACKAGE_VERSION_PATCH "${CMake_VERSION_PATCH}") - + SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}") + SET(CPACK_SOURCE_PACKAGE_FILE_NAME + "cmake-${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}") + SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}) + IF(${CMAKE_SYSTEM_NAME} MATCHES Windows) + IF(CMAKE_CL_64) + SET(CPACK_SYSTEM_NAME win64) + ELSE(CMAKE_CL_64) + SET(CPACK_SYSTEM_NAME win32) + ENDIF(CMAKE_CL_64) + ENDIF(${CMAKE_SYSTEM_NAME} MATCHES Windows) + + + SET(CPACK_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}-${CPACK_SYSTEM_NAME}") IF(WIN32 AND NOT UNIX) # There is a bug in NSI that does not handle full unix paths properly. Make # sure there is at least one set of four (4) backlasshes. |