mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake build: Assign package name dynamically
This enables to install different lyx-versions simultaneously via the package manager.
This commit is contained in:
parent
b9489e73b5
commit
1bff751639
@ -17,12 +17,12 @@ endif()
|
|||||||
# (Ignores the top project)
|
# (Ignores the top project)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
# true on all systems whre __APPLE__ is defined in header files
|
# true on all systems whre __APPLE__ is defined in header files
|
||||||
set(CPACK_PACKAGE_NAME LyX)
|
set(CPACK_PACKAGE_NAME "LyX${LYX_MAJOR_VERSION}${LYX_MINOR_VERSION}")
|
||||||
elseif(UNIX)
|
elseif(UNIX)
|
||||||
# True also for cygwin
|
# True also for cygwin
|
||||||
set(CPACK_PACKAGE_NAME lyx)
|
set(CPACK_PACKAGE_NAME "lyx${LYX_MAJOR_VERSION}${LYX_MINOR_VERSION}")
|
||||||
else()
|
else()
|
||||||
set(CPACK_PACKAGE_NAME LyX)
|
set(CPACK_PACKAGE_NAME "LyX${LYX_MAJOR_VERSION}${LYX_MINOR_VERSION}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}")
|
set(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}")
|
||||||
|
Loading…
Reference in New Issue
Block a user