diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index f83c03c5..cc29d6fe 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -103,6 +103,8 @@ if (pybind11_FOUND) pybind11_add_module(pypointmatcher ${PYBIND11_SOURCES}) + set_target_properties(pypointmatcher PROPERTIES LINKER_LANGUAGE CXX) + target_link_libraries(pypointmatcher PRIVATE pointmatcher @@ -114,4 +116,5 @@ if (pybind11_FOUND) else () message(FATAL_ERROR "pybind11 version required! Please follow the \"Compiling \ libpointmatcher's with Python\" instructions from the official libpointmatcher's documentation.") -endif () \ No newline at end of file +endif () +