Skip to content

Commit

Permalink
Don't add so version to modules on macOS (#2682)
Browse files Browse the repository at this point in the history
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'
  • Loading branch information
2xsaiko authored Mar 3, 2025
1 parent fe6ef02 commit 0f5e4e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/osgearth-macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 0f5e4e5

Please sign in to comment.