From a8e0748dfb57ff80e72978bc93e656cbf3393064 Mon Sep 17 00:00:00 2001 From: Marco Rebhan Date: Wed, 8 Jan 2025 20:08:59 +0100 Subject: [PATCH] Don't add so version to modules on macOS Fixes error during linking, as loadable modules can't have versions on macOS: c++: error: invalid argument '-compatibility_version 164.0.0' only allowed with '-dynamiclib' --- cmake/osgearth-macros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/osgearth-macros.cmake b/cmake/osgearth-macros.cmake index f774d82b01..8042b52b33 100644 --- a/cmake/osgearth-macros.cmake +++ b/cmake/osgearth-macros.cmake @@ -48,7 +48,7 @@ macro(add_osgearth_plugin) set_target_properties(${MY_TARGET} PROPERTIES PREFIX "") # soversions - append SO version to shared object files on unix (e.g., osgearth.so.123) - if (OSGEARTH_SONAMES) + if (NOT APPLE AND OSGEARTH_SONAMES) set_target_properties(${MY_TARGET} PROPERTIES VERSION ${OSGEARTH_VERSION} SOVERSION ${OSGEARTH_SOVERSION}) endif()