Skip to content
Snippets Groups Projects
Commit 8c0f6b28 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[CMake] Add option SUFFIX_SO_VERSION

parent 977c867c
No related branches found
Tags v2.9.2
No related merge requests found
......@@ -39,6 +39,9 @@ SET(BOOST_COMPONENTS filesystem system unit_test_framework)
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
OPTION (INSTALL_PYTHON_INTERFACE_ONLY "Install *ONLY* the python bindings" OFF)
OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON)
IF(BUILD_PYTHON_INTERFACE)
FINDPYTHON()
......
......@@ -32,9 +32,10 @@ SET(integrator-force-exact_plugins_dependencies integrator-force)
FOREACH(lib ${plugins})
SET(libname dp-${lib})
ADD_LIBRARY(${libname} SHARED ${lib})
SET_TARGET_PROPERTIES(${libname} PROPERTIES
PREFIX ""
SOVERSION ${PROJECT_VERSION})
SET_TARGET_PROPERTIES(${libname} PROPERTIES PREFIX "")
IF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${libname} PROPERTIES SOVERSION ${PROJECT_VERSION})
ENDIF()
IF(${lib}_plugins_dependencies)
ADD_DEPENDENCIES(${libname} "dp-${${lib}_plugins_dependencies}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment