Unverified Commit f0d43bc9 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub

Merge pull request #59 from florent-lamiraux/suffix-so-file

Add Cmake option to deactivate suffix of so files.
parents 70864112 727a3003
......@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
$<INSTALL_INTERFACE:include>
)
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
OPTION(SUFFIX_SO_VERSION
"Suffix shared library name by a string depending on git status of project"
ON)
IF (${SUFFIX_SO_VERSION} EQUAL "ON")
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
ENDIF ()
IF (UNIX)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_DL_LIBS} pthread)
......
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