File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ ENDIF(WIN32)
4545# --- OPTIONS ---------------------------------------
4646# ----------------------------------------------------
4747OPTION (INSTALL_DOCUMENTATION "Generate and install the documentation" FALSE )
48+ OPTION (SUFFIX_SO_VERSION "Suffix library name with its version" OFF )
4849
4950IF (DEFINED BUILD_UNIT_TESTS)
5051 MESSAGE (AUTHOR_WARNING "BUILD_UNIT_TESTS is deprecated. Use BUILD_TESTING instead.\
@@ -176,6 +177,10 @@ TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
176177 $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR} /include >
177178 $<INSTALL_INTERFACE:include >)
178179
180+ IF (SUFFIX_SO_VERSION)
181+ SET_TARGET_PROPERTIES (${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION} )
182+ ENDIF (SUFFIX_SO_VERSION)
183+
179184IF (NOT WIN32 )
180185 TARGET_COMPILE_OPTIONS (${PROJECT_NAME} PRIVATE $<$<CXX_COMPILER_ID:MSVC >:-bigobj> "-Wno-conversion" )
181186ELSE ()
You can’t perform that action at this time.
0 commit comments