Skip to content

Commit

Permalink
pdlp: Fix cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jul 17, 2023
1 parent bad3f17 commit 5eb8f82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ortools/pdlp/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5eb8f82

Please sign in to comment.