Skip to content

Commit

Permalink
Don't add so version to modules on macOS
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 committed Jan 8, 2025
1 parent 0f90160 commit b8b5c78
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 b8b5c78

Please sign in to comment.