We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7086411 + 727a300 commit f0d43bcCopy full SHA for f0d43bc
CMakeLists.txt
@@ -170,7 +170,13 @@ target_include_directories(${PROJECT_NAME}
170
$<INSTALL_INTERFACE:include>
171
)
172
173
-SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
+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 ()
180
181
IF (UNIX)
182
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_DL_LIBS} pthread)
0 commit comments