Skip to content

Commit

Permalink
Workaround for pybind/pybind11#3081
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored May 1, 2022
1 parent c08c659 commit 3e2e51d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python_pybind11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif()

message(STATUS "Building pybind11 interfaces")
# Split from main extension and converted to pybind11
pybind11_add_module(math SHARED
add_library(math SHARED
src/_ignition_math_pybind11.cc
src/Angle.cc
src/AxisAlignedBox.cc
Expand Down Expand Up @@ -48,9 +48,11 @@ pybind11_add_module(math SHARED
)

target_link_libraries(math PRIVATE
${PROJECT_LIBRARY_TARGET_NAME}
${PROJECT_LIBRARY_TARGET_NAME} pybind11::module
)

pybind11_extension(math)

if(USE_SYSTEM_PATHS_FOR_PYTHON_INSTALLATION)
if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
execute_process(
Expand Down

0 comments on commit 3e2e51d

Please sign in to comment.