[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Tue Mar 29 18:31:31 CEST 2011
SVN commit 1226405 by kuemmel:
fix installer name
M +9 -4 CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1226404:1226405
@@ -215,13 +215,14 @@
if(WIN32)
set(CPACK_GENERATOR NSIS ZIP)
set(CPACK_BINARY_ZIP 1)
- if (kst_install_prefix)
- set(CPACK_NSIS_PACKAGE_NAME ${kst_install_prefix})
endif()
-endif()
if (kst_install_prefix)
+ if(WIN32)
+ set(CPACK_PACKAGE_FILE_NAME ${kst_install_prefix}-win32)
+ else()
set(CPACK_PACKAGE_FILE_NAME ${kst_install_prefix}-binary)
+ endif()
set(CPACK_SOURCE_PACKAGE_FILE_NAME ${kst_install_prefix})
else()
set(CPACK_SOURCE_PACKAGE_FILE_NAME Kst-${kst_version})
@@ -252,7 +253,11 @@
# sources
set(CPACK_SOURCE_INSTALLED_DIRECTORIES "${kst_dir};/") # http://www.mail-archive.com/cmake@cmake.org/msg33720.html
-set(CPACK_SOURCE_GENERATOR TGZ ZIP TBZ2)
+if(WIN32)
+ set(CPACK_SOURCE_GENERATOR ZIP)
+else()
+ set(CPACK_SOURCE_GENERATOR TGZ)
+endif()
# rpm
set(CPACK_SET_DESTDIR "ON")
More information about the Kst
mailing list