Skip to content

Commit f0d43bc

Browse files
authored
Merge pull request #59 from florent-lamiraux/suffix-so-file
Add Cmake option to deactivate suffix of so files.
2 parents 7086411 + 727a300 commit f0d43bc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
170170
$<INSTALL_INTERFACE:include>
171171
)
172172
173-
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
173+
OPTION(SUFFIX_SO_VERSION
174+
"Suffix shared library name by a string depending on git status of project"
175+
ON)
176+
177+
IF (${SUFFIX_SO_VERSION} EQUAL "ON")
178+
SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
179+
ENDIF ()
174180
175181
IF (UNIX)
176182
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_DL_LIBS} pthread)

0 commit comments

Comments
 (0)