Make package name be platform dependent

This commit is contained in:
Kornel Benko 2012-09-21 15:09:46 +02:00
parent 6913a0c5f2
commit b1a409be97
2 changed files with 12 additions and 5 deletions

View File

@ -7,11 +7,7 @@
cmake_minimum_required(VERSION 2.6.4)
if(APPLE)
set(LYX_PROJECT LyX)
else()
set(LYX_PROJECT lyx)
endif()
set(LYX_PROJECT LyX)
set(LYX_CMAKE_DIR "development/cmake")
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/${LYX_CMAKE_DIR}/modules")

View File

@ -13,6 +13,17 @@ if(LYX_BUNDLE)
endif()
endif()
# Overwrite package name dependent on platform
# (Ignores the top project)
if(APPLE)
# true on all systems whre __APPLE__ is defined in header files
set(CPACK_PACKAGE_NAME LyX)
elseif(UNIX)
# True also for cygwin
set(CPACK_PACKAGE_NAME lyx)
else()
set(CPACK_PACKAGE_NAME LyX)
endif()
set(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${LYX_MINOR_VERSION}")