Skip to content

Commit

Permalink
build: change module suffix on macOS, closes #173
Browse files Browse the repository at this point in the history
  • Loading branch information
iboB committed Nov 1, 2024
1 parent cddb810 commit 4bad1e3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/ac_module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ macro(ac_add_module name)
-fvisibility-inlines-hidden
)
endif()
if(APPLE)
# by default on macOS the default suffix by cmake for modules is .so
# this doesn't play well with many loaders which require .dylib
# instead of changing this globally and potentially breaking third
# party code, we'll only do this for our own modules
set_target_properties(${name} PROPERTIES SUFFIX ".dylib")
endif()
endmacro()

0 comments on commit 4bad1e3

Please sign in to comment.