This is an automated email from the ASF dual-hosted git repository.
cmcfarlen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 152005cba9 install libswoc with versioned filenames (#12019)
152005cba9 is described below
commit 152005cba9c36aaf1ad962141031fdc22ffa1d81
Author: Chris McFarlen <[email protected]>
AuthorDate: Mon Feb 17 08:09:24 2025 -0600
install libswoc with versioned filenames (#12019)
Co-authored-by: Chris McFarlen <[email protected]>
---
lib/swoc/CMakeLists.txt | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/lib/swoc/CMakeLists.txt b/lib/swoc/CMakeLists.txt
index a7ebe26400..a60e1acf28 100644
--- a/lib/swoc/CMakeLists.txt
+++ b/lib/swoc/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.11)
-project(Lib-SWOC CXX)
+project(Lib-SWOC LANGUAGES CXX VERSION 1.5.12)
set(LIBSWOC_VERSION "1.5.12")
set(CMAKE_CXX_STANDARD 17)
cmake_policy(SET CMP0087 NEW)
@@ -66,7 +66,15 @@ set(CC_FILES
)
add_library(libswoc SHARED ${CC_FILES})
-set_target_properties(libswoc PROPERTIES OUTPUT_NAME swoc-${LIBSWOC_VERSION}
PUBLIC_HEADER "${HEADER_FILES}")
+set_target_properties(
+ libswoc
+ PROPERTIES
+ VERSION
"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
+ SOVERSION "${PROJECT_VERSION_MAJOR}"
+ MACHO_COMPATIBILITY_VERSION "${PROJECT_VERSION_MAJOR}.0.0"
+ OUTPUT_NAME swoc
+ PUBLIC_HEADER "${HEADER_FILES}"
+)
if(CMAKE_COMPILER_IS_GNUCXX)
target_compile_options(