Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add versioning to shared libs #2516

Merged
merged 2 commits into from Oct 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
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})
horenmar marked this conversation as resolved.
Show resolved Hide resolved

# 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}
horenmar marked this conversation as resolved.
Show resolved Hide resolved
)
set_target_properties(Catch2WithMain PROPERTIES DEBUG_POSTFIX "d")

Expand Down