Skip to content

Commit b039168

Browse files
committed
cmake: fix python build when BUILD_TESTING=OFF
1 parent e066455 commit b039168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ortools/python/setup.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ setup(
128128
'@PYTHON_PROJECT@.util.python':[
129129
'$<TARGET_FILE_NAME:sorted_interval_list_pybind11>',
130130
'$<TARGET_FILE_NAME:solve_interrupter_pybind11>',
131-
'$<TARGET_FILE_NAME:solve_interrupter_testing_pybind11>',
131+
$<$<TARGET_EXISTS:solve_interrupter_testing_pybind11>:'$<TARGET_FILE_NAME:solve_interrupter_testing_pybind11>',>
132132
'*.pyi'
133133
],
134134
},

0 commit comments

Comments
 (0)