Skip to content
Snippets Groups Projects
Unverified Commit 356088ce authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

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


* Add Cmake option to deactivate suffix of so files.

Co-authored-by: default avatarJoseph Mirabel <josephmirabel@gmail.com>
parents 3b5d3428 e5feb458
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,9 @@ SET(DOXYGEN_USE_MATHJAX YES)
OPTION(BUILD_PYTHON_INTERFACE "Build the python bindings" ON)
OPTION(INSTALL_PYTHON_INTERFACE_ONLY "Install *ONLY* the python binding" OFF)
OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON)
CMAKE_POLICY(SET CMP0048 OLD)
PROJECT(${PROJECT_NAME} CXX)
......
......@@ -23,8 +23,12 @@ PKG_CONFIG_USE_DEPENDENCY (${LIBRARY_NAME} sot-core)
SET_TARGET_PROPERTIES(${LIBRARY_NAME}
PROPERTIES
SOVERSION ${PROJECT_VERSION}
INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
IF(SUFFIX_SO_VERSION)
SET_TARGET_PROPERTIES(${LIBRARY_NAME}
PROPERTIES SOVERSION ${PROJECT_VERSION}
)
ENDIF()
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
INSTALL (TARGETS ${LIBRARY_NAME} DESTINATION lib)
......
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