From 5eb8f824dcd478f86ca86152985288d2d96d8f42 Mon Sep 17 00:00:00 2001 From: Mizux Seiha Date: Mon, 17 Jul 2023 10:35:30 +0200 Subject: [PATCH] pdlp: Fix cmake build --- ortools/pdlp/python/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ortools/pdlp/python/CMakeLists.txt b/ortools/pdlp/python/CMakeLists.txt index 29f3493ae96..79810a74491 100644 --- a/ortools/pdlp/python/CMakeLists.txt +++ b/ortools/pdlp/python/CMakeLists.txt @@ -26,7 +26,12 @@ elseif(UNIX) INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" ) endif() -target_link_libraries(pdlp_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools) +target_link_libraries(pdlp_pybind11 PRIVATE + ${PROJECT_NAMESPACE}::ortools + pybind11_native_proto_caster + protobuf::libprotobuf + ) +target_include_directories(pdlp_pybind11 PRIVATE ${protobuf_SOURCE_DIR}) add_library(${PROJECT_NAMESPACE}::pdlp_pybind11 ALIAS pdlp_pybind11) if(BUILD_TESTING)