]> git.lyx.org Git - features.git/commitdiff
Cmake build: Assign package name dynamically
authorKornel Benko <kornel@lyx.org>
Sat, 19 Apr 2014 09:09:25 +0000 (11:09 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 19 Apr 2014 09:09:25 +0000 (11:09 +0200)
This enables to install different lyx-versions simultaneously via
the package manager.

development/cmake/LyxPackaging.cmake

index 61d15b02750d0a7a575bbd2a34f08e24b61a8317..385e59e691368decff5579680a58f632157ab59f 100644 (file)
@@ -17,12 +17,12 @@ endif()
 # (Ignores the top project)
 if(APPLE)
        # 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)
        # True also for cygwin
-       set(CPACK_PACKAGE_NAME lyx)
+       set(CPACK_PACKAGE_NAME "lyx${LYX_MAJOR_VERSION}${LYX_MINOR_VERSION}")
 else()
-       set(CPACK_PACKAGE_NAME LyX)
+       set(CPACK_PACKAGE_NAME "LyX${LYX_MAJOR_VERSION}${LYX_MINOR_VERSION}")
 endif()
 
 set(CPACK_PACKAGE_VERSION_MAJOR "${LYX_MAJOR_VERSION}")