Skip to content

Commit

Permalink
Add pybind11 module as MODULE (#1127)
Browse files Browse the repository at this point in the history
This fixes an issue with linking to python libraries
on macOS.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored Sep 7, 2022
1 parent dc5720a commit 02a3de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function(configure_build_install_location _library_name)
)
endfunction()

pybind11_add_module(sdformat SHARED
pybind11_add_module(sdformat MODULE
src/sdf/_gz_sdformat_pybind11.cc
src/sdf/pyAirPressure.cc
src/sdf/pyAltimeter.cc
Expand Down

0 comments on commit 02a3de2

Please sign in to comment.