File tree 1 file changed +13
-4
lines changed
1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,16 @@ set(PYTHON_PROJECT_DIR ${PROJECT_BINARY_DIR}/python/${PYTHON_PROJECT})
272
272
message (STATUS "Python project build path: ${PYTHON_PROJECT_DIR} " )
273
273
274
274
# SWIG/Pybind11 wrap all libraries
275
- foreach (SUBPROJECT IN ITEMS init algorithms graph linear_solver constraint_solver pdlp sat scheduling util)
275
+ foreach (SUBPROJECT IN ITEMS
276
+ init
277
+ algorithms
278
+ graph
279
+ constraint_solver
280
+ linear_solver
281
+ ${PDLP_DIR}
282
+ sat
283
+ scheduling
284
+ util)
276
285
add_subdirectory (ortools/${SUBPROJECT} /python)
277
286
endforeach ()
278
287
@@ -439,8 +448,8 @@ add_custom_command(
439
448
$<TARGET_FILE:math_opt_pybind11> ${PYTHON_PROJECT} /math_opt/core/python
440
449
COMMAND ${CMAKE_COMMAND} -E copy
441
450
$<TARGET_FILE:status_py_extension_stub> ${PYTHON_PROJECT} /../pybind11_abseil
442
- COMMAND ${CMAKE_COMMAND} -E copy
443
- $<TARGET_FILE:pdlp_pybind11> ${PYTHON_PROJECT} /pdlp/python
451
+ COMMAND ${CMAKE_COMMAND} -E
452
+ $<IF:$<TARGET_EXISTS:pdlp_pybind11>,copy $< TARGET_FILE:pdlp_pybind11>, true > ${PYTHON_PROJECT} /pdlp/python
444
453
COMMAND ${CMAKE_COMMAND} -E copy
445
454
$<TARGET_FILE:swig_helper_pybind11> ${PYTHON_PROJECT} /sat/python
446
455
COMMAND ${CMAKE_COMMAND} -E copy
@@ -460,7 +469,7 @@ add_custom_command(
460
469
pywraplp
461
470
model_builder_helper_pybind11
462
471
math_opt_pybind11
463
- pdlp_pybind11
472
+ $<TARGET_NAME_IF_EXISTS: pdlp_pybind11>
464
473
swig_helper_pybind11
465
474
rcpsp_pybind11
466
475
sorted_interval_list_pybind11
You can’t perform that action at this time.
0 commit comments