mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Make package name be platform dependent
This commit is contained in:
parent
6913a0c5f2
commit
b1a409be97
@ -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")
|
||||
|
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user