Verified Commit 291b12a7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: fix python module

parent 6f59e2b7
......@@ -12,7 +12,13 @@ if(CMAKE_VERSION VERSION_GREATER 3.11)
add_library(cpp2pybind11 MODULE cpp2pybind11.cpp)
target_link_libraries(cpp2pybind11 PRIVATE pinocchio_pywrap pybind11::module)
IF(BUILD_WITH_OPENMP_SUPPORT AND NOT LINK_PYTHON_INTERFACE_TO_OPENMP)
SET_TARGET_PROPERTIES(cpp2pybind11
PROPERTIES
PREFIX ""
SUFFIX ${PYTHON_EXT_SUFFIX}
)
IF(BUILD_WITH_OPENMP_SUPPORT AND NOT LINK_PYTHON_INTERFACE_TO_OPENMP)
TARGET_LINK_LIBRARIES(cpp2pybind11 PRIVATE OpenMP::OpenMP_CXX)
ENDIF()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment