From 0546faf0552142f06ff4b201b671a5769dd007ad Mon Sep 17 00:00:00 2001 From: Simon Gog Date: Mon, 4 Jul 2016 18:55:14 +0200 Subject: [PATCH] Update CMakeLists.txt --- lib/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index dd10cf410..b2e606e84 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -17,10 +17,12 @@ install(TARGETS sdsl RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) + +math(EXPR SOVERSION "${LIBRARY_VERSION_MAJOR}+1") set_target_properties(sdsl PROPERTIES VERSION "${LIBRARY_VERSION_FULL}" - SOVERSION "${LIBRARY_VERSION_MAJOR}" + SOVERSION "${SOVERSION}" # DEFINE_SYMBOL SDSL_BUILD_DLL # RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../examples" - ) +)