Skip to content

Commit

Permalink
add versioning to shared libs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanspw authored Sep 8, 2022
1 parent 32eae0e commit 6b690a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ if (ANDROID)
target_link_libraries(Catch2 INTERFACE log)
endif()

set_target_properties(Catch2 PROPERTIES DEBUG_POSTFIX "d")
set_target_properties(Catch2 PROPERTIES
DEBUG_POSTFIX "d"
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR})

# depend on bunch of C++11 and C++14 features to have C++14 enabled by default
target_compile_features(Catch2
Expand Down Expand Up @@ -350,6 +353,8 @@ target_link_libraries(Catch2WithMain PUBLIC Catch2)
set_target_properties(Catch2WithMain
PROPERTIES
OUTPUT_NAME "Catch2Main"
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
)
set_target_properties(Catch2WithMain PROPERTIES DEBUG_POSTFIX "d")

Expand Down

0 comments on commit 6b690a6

Please sign in to comment.