Skip to content

Commit

Permalink
Shared library .so version (#3407)
Browse files Browse the repository at this point in the history
Co-authored-by: John Paul Adrian Glaubitz <[email protected]>
  • Loading branch information
dougch and glaubitz authored Aug 3, 2022
1 parent 2ad9e17 commit fd9eb4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ set(INSTALL_CMAKE_DIR lib/cmake CACHE PATH "Installation directory for cmake fil

set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE)

# Version number
set(VERSION_MAJOR 1)
set(VERSION_MINOR 3)
set(VERSION_PATCH 18)


option(S2N_NO_PQ "Disables all Post Quantum Crypto code. You likely want this
for older compilers or uncommon platforms." OFF)
option(S2N_NO_PQ_ASM "Turns off the ASM for PQ Crypto even if it's available for the toolchain.
Expand Down Expand Up @@ -239,6 +245,9 @@ file(GLOB S2N_SRC
add_library(${PROJECT_NAME} ${S2N_HEADERS} ${S2N_SRC})
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C)

set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})

set(CMAKE_C_FLAGS_DEBUGOPT "")

target_compile_options(${PROJECT_NAME} PRIVATE -pedantic -std=gnu99 -Wall -Wimplicit -Wunused -Wcomment -Wchar-subscripts
Expand Down

0 comments on commit fd9eb4d

Please sign in to comment.