Description: fix sign compare
Author: Stephan Lachnit <stephanlachnit@debian.org>
Forwarded: https://gitlab.cern.ch/VecGeom/VecGeom/-/merge_requests/889

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -632,6 +632,14 @@
   ${PROJECT_BINARY_DIR}/VecGeom/base/Config.h
   ${VECGEOM_COMMON_SRCS}
   ${VECGEOM_CPPONLY_SRCS})
+
+if(BUILD_SHARED_LIBS)
+  set_target_properties(vecgeom
+    PROPERTIES
+      VERSION ${PROJECT_VERSION}
+      SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+endif()
+
 target_compile_features(vecgeom PUBLIC cxx_std_${CMAKE_CXX_STANDARD})
 
 # Add compile options that vecgeom clients must compile their code using Vecgeom
--- a/persistency/gdml/source/CMakeLists.txt
+++ b/persistency/gdml/source/CMakeLists.txt
@@ -21,6 +21,13 @@
   src/ReflFactory.cpp
 )
 
+if(BUILD_SHARED_LIBS)
+  set_target_properties(vgdml
+    PROPERTIES
+      VERSION ${PROJECT_VERSION}
+      SOVERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR})
+endif()
+
 target_include_directories(vgdml PUBLIC
   $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
   $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
