diff options
| author | Jonathan Wright | 2022-10-04 08:49:09 -0500 |
|---|---|---|
| committer | GitHub | 2022-10-04 15:49:09 +0200 |
| commit | 0e139b73e4a462f0ea23e22c3182a3d1f91b719d (patch) | |
| tree | 78b22ff84610be72b3ccca0f647158a7c1898802 /src | |
| parent | 97313f9033cffde2002e4a377229559d360d7f73 (diff) | |
| download | catch3-0e139b73e4a462f0ea23e22c3182a3d1f91b719d.tar.gz | |
add versioning to shared libs (#2516)
* add versioning to shared libs
Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 81480217..ae51bf8a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}) # depend on bunch of C++11 and C++14 features to have C++14 enabled by default target_compile_features(Catch2 @@ -350,6 +353,8 @@ target_link_libraries(Catch2WithMain PUBLIC Catch2) set_target_properties(Catch2WithMain PROPERTIES OUTPUT_NAME "Catch2Main" + VERSION ${PROJECT_VERSION} + SOVERSION ${PROJECT_VERSION} ) set_target_properties(Catch2WithMain PROPERTIES DEBUG_POSTFIX "d") |