Commit e16b0159 authored by Luigi Toscano's avatar Luigi Toscano
Browse files

Fix the soname of kalzium internal libraries

GENERIC_LIB_VERSION and GENERIC_LIB_SOVERSION where exported by kdelibs4.
Define local variables for the version of the libraries.

BUG: 373565
parent 7c9e0221
......@@ -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)
......
......@@ -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})
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment