From 780b1f040e0a2dabf42aaeb600c98448c2adf9ce Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Thu, 19 Nov 2020 12:32:49 +0100 Subject: [PATCH] Set VERSION and SOVERSION as additional target properties Fixes #2402 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba785beec9e..98468403ef0 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -173,6 +173,10 @@ file(GLOB S2N_SRC add_library(${PROJECT_NAME} ${S2N_HEADERS} ${S2N_SRC}) set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C) +# As long as the ABI isn't stable, set the SO version to 0unstable +set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES VERSION 1.0.0) +set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES SOVERSION 0unstable) + set(CMAKE_C_FLAGS_DEBUGOPT "") target_compile_options(${PROJECT_NAME} PRIVATE -pedantic -std=gnu99 -Wall -Werror -Wimplicit -Wunused -Wcomment -Wchar-subscripts