diff --git a/ortools/constraint_solver/python/CMakeLists.txt b/ortools/constraint_solver/python/CMakeLists.txt index c1cb3e8ad9..69bf753a2c 100644 --- a/ortools/constraint_solver/python/CMakeLists.txt +++ b/ortools/constraint_solver/python/CMakeLists.txt @@ -30,8 +30,7 @@ target_compile_definitions(pywrapcp PUBLIC "PY3") if(APPLE) set_target_properties(pywrapcp PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../${PROJECT_NAME}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../${PROJECT_NAME}/.libs") target_link_options(pywrapcp PRIVATE "LINKER:-undefined,dynamic_lookup") elseif(UNIX) set_target_properties(pywrapcp PROPERTIES diff --git a/ortools/init/python/CMakeLists.txt b/ortools/init/python/CMakeLists.txt index 478e58a21d..ff471b294f 100644 --- a/ortools/init/python/CMakeLists.txt +++ b/ortools/init/python/CMakeLists.txt @@ -19,12 +19,10 @@ set_target_properties(init_pybind11 PROPERTIES if(APPLE) set_target_properties(init_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(init_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(init_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools) diff --git a/ortools/linear_solver/python/CMakeLists.txt b/ortools/linear_solver/python/CMakeLists.txt index 3c17b88684..c33c9a43c0 100644 --- a/ortools/linear_solver/python/CMakeLists.txt +++ b/ortools/linear_solver/python/CMakeLists.txt @@ -29,8 +29,7 @@ target_compile_definitions(pywraplp PUBLIC "PY3") if(APPLE) set_target_properties(pywraplp PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../${PROJECT_NAME}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../${PROJECT_NAME}/.libs") target_link_options(pywraplp PRIVATE "LINKER:-undefined,dynamic_lookup") elseif(UNIX) set_target_properties(pywraplp PROPERTIES @@ -57,19 +56,16 @@ target_include_directories(model_builder_helper_pybind11 PRIVATE if(APPLE) set_target_properties(model_builder_helper_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(model_builder_helper_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(model_builder_helper_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools pybind11_native_proto_caster - Eigen3::Eigen -) + Eigen3::Eigen) add_library(${PROJECT_NAMESPACE}::model_builder_helper_pybind11 ALIAS model_builder_helper_pybind11) if(BUILD_TESTING) diff --git a/ortools/math_opt/core/python/CMakeLists.txt b/ortools/math_opt/core/python/CMakeLists.txt index e53ed18849..0b50e8d60f 100644 --- a/ortools/math_opt/core/python/CMakeLists.txt +++ b/ortools/math_opt/core/python/CMakeLists.txt @@ -20,13 +20,11 @@ if(APPLE) set_target_properties(math_opt_pybind11 PROPERTIES SUFFIX ".so" INSTALL_RPATH - "@loader_path;@loader_path/../../../../${PYTHON_PROJECT}/.libs;@loader_path/../../../../pybind11_abseil" - ) + "@loader_path;@loader_path/../../../../${PYTHON_PROJECT}/.libs;@loader_path/../../../../pybind11_abseil") elseif(UNIX) set_target_properties(math_opt_pybind11 PROPERTIES INSTALL_RPATH - "$ORIGIN:$ORIGIN/../../../../${PYTHON_PROJECT}/.libs:$ORIGIN/../../../../pybind11_abseil" - ) + "$ORIGIN:$ORIGIN/../../../../${PYTHON_PROJECT}/.libs:$ORIGIN/../../../../pybind11_abseil") endif() target_link_libraries(math_opt_pybind11 PRIVATE @@ -34,8 +32,7 @@ target_link_libraries(math_opt_pybind11 PRIVATE pybind11_abseil::absl_casters pybind11_abseil::status_casters pybind11_native_proto_caster - protobuf::libprotobuf - ) + protobuf::libprotobuf) add_library(${PROJECT_NAMESPACE}::math_opt_pybind11 ALIAS math_opt_pybind11) if(BUILD_TESTING) diff --git a/ortools/pdlp/python/CMakeLists.txt b/ortools/pdlp/python/CMakeLists.txt index b80b01996c..2dc9532a31 100644 --- a/ortools/pdlp/python/CMakeLists.txt +++ b/ortools/pdlp/python/CMakeLists.txt @@ -18,18 +18,15 @@ set_target_properties(pdlp_pybind11 PROPERTIES if(APPLE) set_target_properties(pdlp_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(pdlp_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(pdlp_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools pybind11_native_proto_caster - protobuf::libprotobuf -) + protobuf::libprotobuf) target_include_directories(pdlp_pybind11 PRIVATE ${protobuf_SOURCE_DIR}) add_library(${PROJECT_NAMESPACE}::pdlp_pybind11 ALIAS pdlp_pybind11) diff --git a/ortools/sat/python/CMakeLists.txt b/ortools/sat/python/CMakeLists.txt index 348d463cb3..cf3e7d8d6a 100644 --- a/ortools/sat/python/CMakeLists.txt +++ b/ortools/sat/python/CMakeLists.txt @@ -19,18 +19,15 @@ set_target_properties(swig_helper_pybind11 PROPERTIES if(APPLE) set_target_properties(swig_helper_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(swig_helper_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(swig_helper_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools pybind11_native_proto_caster - protobuf::libprotobuf - ) + protobuf::libprotobuf) target_include_directories(swig_helper_pybind11 PRIVATE ${protobuf_SOURCE_DIR}) add_library(${PROJECT_NAMESPACE}::swig_helper_pybind11 ALIAS swig_helper_pybind11) diff --git a/ortools/scheduling/python/CMakeLists.txt b/ortools/scheduling/python/CMakeLists.txt index 3ba6cb887f..cccb40194e 100644 --- a/ortools/scheduling/python/CMakeLists.txt +++ b/ortools/scheduling/python/CMakeLists.txt @@ -19,18 +19,15 @@ set_target_properties(rcpsp_pybind11 PROPERTIES if(APPLE) set_target_properties(rcpsp_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(rcpsp_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(rcpsp_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools pybind11_native_proto_caster - protobuf::libprotobuf - ) + protobuf::libprotobuf) target_include_directories(rcpsp_pybind11 PRIVATE ${protobuf_SOURCE_DIR}) add_library(${PROJECT_NAMESPACE}::rcpsp_pybind11 ALIAS rcpsp_pybind11) diff --git a/ortools/util/python/CMakeLists.txt b/ortools/util/python/CMakeLists.txt index bc70b62f7f..d4cac301cb 100644 --- a/ortools/util/python/CMakeLists.txt +++ b/ortools/util/python/CMakeLists.txt @@ -19,12 +19,10 @@ set_target_properties(sorted_interval_list_pybind11 PROPERTIES if(APPLE) set_target_properties(sorted_interval_list_pybind11 PROPERTIES SUFFIX ".so" - INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "@loader_path;@loader_path/../../../${PYTHON_PROJECT}/.libs") elseif(UNIX) set_target_properties(sorted_interval_list_pybind11 PROPERTIES - INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs" - ) + INSTALL_RPATH "$ORIGIN:$ORIGIN/../../../${PYTHON_PROJECT}/.libs") endif() target_link_libraries(sorted_interval_list_pybind11 PRIVATE ${PROJECT_NAMESPACE}::ortools)