summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Toscano <luigi.toscano@tiscali.it>2016-12-12 23:59:34 (GMT)
committerLuigi Toscano <luigi.toscano@tiscali.it>2016-12-13 00:05:15 (GMT)
commite16b0159acc01efcdc8b51b04b8eb6303b16b0db (patch)
tree4a7ba5694275e51ee4374cf5fd46b113b4465a3f
parent7c9e0221cd4a6d9d58c7ee0c9bac32f4e06b40da (diff)
Fix the soname of kalzium internal librariesv16.12.0
GENERIC_LIB_VERSION and GENERIC_LIB_SOVERSION where exported by kdelibs4. Define local variables for the version of the libraries. BUG: 373565
-rw-r--r--CMakeLists.txt5
-rw-r--r--compoundviewer/CMakeLists.txt4
-rw-r--r--libscience/CMakeLists.txt2
3 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9844a34..a2a5e4c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,6 +11,7 @@ include(FeatureSummary)
include(ECMInstallIcons)
include(ECMMarkNonGuiExecutable)
include(CheckIncludeFiles)
+include(ECMSetupVersion)
find_package(Gettext REQUIRED)
find_package(PythonInterp REQUIRED)
@@ -62,6 +63,10 @@ find_package(KF5 REQUIRED COMPONENTS
WidgetsAddons
)
+ecm_setup_version("5.0.0"
+ VARIABLE_PREFIX KALZIUMLIB
+)
+
# search packages used by KDE
if(WIN32)
find_package(KDEWIN32 REQUIRED)
diff --git a/compoundviewer/CMakeLists.txt b/compoundviewer/CMakeLists.txt
index 2109d84..106a3f6 100644
--- a/compoundviewer/CMakeLists.txt
+++ b/compoundviewer/CMakeLists.txt
@@ -28,8 +28,8 @@ target_link_libraries(compoundviewer
)
set_target_properties(compoundviewer PROPERTIES
- VERSION ${GENERIC_LIB_VERSION}
- SOVERSION ${GENERIC_LIB_SOVERSION}
+ VERSION ${KALZIUMLIB_VERSION}
+ SOVERSION ${KALZIUMLIB_SOVERSION}
)
install(TARGETS compoundviewer ${INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/libscience/CMakeLists.txt b/libscience/CMakeLists.txt
index d7c23a4..8fa87de 100644
--- a/libscience/CMakeLists.txt
+++ b/libscience/CMakeLists.txt
@@ -17,7 +17,7 @@ set(science_LIB_SRCS
add_library(science SHARED ${science_LIB_SRCS})
target_link_libraries(science Qt5::OpenGL Qt5::Xml KF5::UnitConversion KF5::WidgetsAddons KF5::KDELibs4Support)
-set_target_properties(science PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
+set_target_properties(science PROPERTIES VERSION ${KALZIUMLIB_VERSION} SOVERSION ${KALZIUMLIB_SOVERSION} )
install(TARGETS science ${INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES