Commit 8c0f6b28 authored by Joseph Mirabel's avatar Joseph Mirabel

[CMake] Add option SUFFIX_SO_VERSION

parent 977c867c
......@@ -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}")
......
Markdown is supported
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