Unverified Commit 9ecc8ccd authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub

Add Cmake option to deactivate suffix of so files. (#13)

* Add Cmake option to deactivate suffix of so files.
Co-authored-by: Joseph Mirabel's avatarJoseph Mirabel <josephmirabel@gmail.com>
parents a2553a3f 71f2c0a2
......@@ -15,6 +15,10 @@ INCLUDE(cmake/lapack.cmake)
INCLUDE(cmake/ros.cmake)
INCLUDE(cmake/python.cmake)
OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON)
SET(CUSTOM_HEADER_DIR "${PROJECT_NAME}")
SET(CXX_DISABLE_WERROR True)
......
......@@ -4,7 +4,12 @@ FUNCTION(COMPILE_PLUGIN NAME SOURCES ENTITIES)
ADD_LIBRARY(${NAME} SHARED ${SOURCES})
SET_TARGET_PROPERTIES(${lib} PROPERTIES
PREFIX ""
SOVERSION ${PROJECT_VERSION})
)
IF (SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${lib} PROPERTIES
SOVERSION ${PROJECT_VERSION}
)
ENDIF()
PKG_CONFIG_USE_DEPENDENCY(${NAME} dynamic-graph)
PKG_CONFIG_USE_DEPENDENCY(${NAME} sot-core)
......
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