vecgeom/vecgeom-add-soversion.patch
2023-12-04 20:33:35 +08:00

31 lines
1.1 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8654407..4c3070c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -594,6 +594,10 @@ add_library(vecgeom
${PROJECT_BINARY_DIR}/VecGeom/base/Version.h
${VECGEOM_COMMON_SRCS}
${VECGEOM_CPPONLY_SRCS})
+set_target_properties(vecgeom
+ PROPERTIES
+ VERSION ${PROJECT_VERSION}
+ SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
target_compile_features(vecgeom PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
# Add compile options that vecgeom clients must compile their code using Vecgeom
diff --git a/persistency/gdml/source/CMakeLists.txt b/persistency/gdml/source/CMakeLists.txt
index 9f67409..ec5dda2 100644
--- a/persistency/gdml/source/CMakeLists.txt
+++ b/persistency/gdml/source/CMakeLists.txt
@@ -19,7 +19,10 @@ add_library(vgdml
src/Helper.cpp
src/Middleware.cpp
)
-
+set_target_properties(vgdml
+ PROPERTIES
+ VERSION ${PROJECT_VERSION}
+ SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
target_include_directories(vgdml PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>