From 77418a94c19f00d9b7858a46c23ea83eb841091a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 19 Dec 2018 15:37:30 +0900 Subject: [PATCH] add SOVERSION for cmake --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa9c6d0..27bbbcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,9 +92,10 @@ include_directories( add_library(mcl STATIC ${SRCS}) add_library(mcl_dy SHARED ${SRCS}) target_link_libraries(mcl_dy ${LIBS}) -set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl) if(NOT USE_OLD_SHARED_NAME) - set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl) + set_target_properties(mcl_dy PROPERTIES OUTPUT_NAME mcl VERSION 1.0.0 SOVERSION 1) + # For semantics of ABI compatibility including when you must bump SOVERSION, see: + # https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B#The_Do.27s_and_Don.27ts endif() file(GLOB MCL_HEADERS include/mcl/*.hpp include/mcl/bn.h include/mcl/curve_type.h)