Skip to content

Commit 02a3de2

Browse files
authored
Add pybind11 module as MODULE (#1127)
This fixes an issue with linking to python libraries on macOS. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent dc5720a commit 02a3de2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function(configure_build_install_location _library_name)
3636
)
3737
endfunction()
3838

39-
pybind11_add_module(sdformat SHARED
39+
pybind11_add_module(sdformat MODULE
4040
src/sdf/_gz_sdformat_pybind11.cc
4141
src/sdf/pyAirPressure.cc
4242
src/sdf/pyAltimeter.cc

0 commit comments

Comments
 (0)