aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <herumi@nifty.com>2018-12-19 14:37:30 +0800
committerMITSUNARI Shigeo <herumi@nifty.com>2018-12-19 14:37:30 +0800
commit77418a94c19f00d9b7858a46c23ea83eb841091a (patch)
treef6ccea14c03f899328867b4fd3d47e7a9ca3f808
parent5b6ba3f72e101fa4b2d126b6160ef19af0e68f45 (diff)
downloaddexon-mcl-77418a94c19f00d9b7858a46c23ea83eb841091a.tar.gz
dexon-mcl-77418a94c19f00d9b7858a46c23ea83eb841091a.tar.zst
dexon-mcl-77418a94c19f00d9b7858a46c23ea83eb841091a.zip
add SOVERSION for cmake
-rw-r--r--CMakeLists.txt5
1 files 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)