Skip to content

Commit 0546faf

Browse files
authored
Update CMakeLists.txt
1 parent 05d0679 commit 0546faf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ install(TARGETS sdsl
1717
RUNTIME DESTINATION bin
1818
LIBRARY DESTINATION lib
1919
ARCHIVE DESTINATION lib)
20+
21+
math(EXPR SOVERSION "${LIBRARY_VERSION_MAJOR}+1")
2022

2123
set_target_properties(sdsl PROPERTIES
2224
VERSION "${LIBRARY_VERSION_FULL}"
23-
SOVERSION "${LIBRARY_VERSION_MAJOR}"
25+
SOVERSION "${SOVERSION}"
2426
# DEFINE_SYMBOL SDSL_BUILD_DLL
2527
# RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples"
26-
)
28+
)

0 commit comments

Comments
 (0)