diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-19 20:51:53 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-04-19 20:51:53 (GMT) |
commit | 84b5a3b02130eab239fe0f36f94b628c0ac63178 (patch) | |
tree | 1ee33988e2fd7a09cb242f7f871c8df3cb17827d /CMakeLists.txt | |
parent | e6ef33f598f7ff74f7b6d7c60f98f883937c385a (diff) | |
download | CMake-84b5a3b02130eab239fe0f36f94b628c0ac63178.zip CMake-84b5a3b02130eab239fe0f36f94b628c0ac63178.tar.gz CMake-84b5a3b02130eab239fe0f36f94b628c0ac63178.tar.bz2 |
ENH: update cpack stuff to match old cmake releases
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 d16c4bf..892227b 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. |