Skip to content

Commit 7a4d996

Browse files
committed
cmake: fix python build when BUILD_TESTING=OFF
1 parent 5bb667e commit 7a4d996

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
@@ -140,7 +140,7 @@ setup(
140140
'@PYTHON_PROJECT@.util.python':[
141141
'$<TARGET_FILE_NAME:sorted_interval_list_pybind11>',
142142
'$<TARGET_FILE_NAME:solve_interrupter_pybind11>',
143-
'$<TARGET_FILE_NAME:solve_interrupter_testing_pybind11>',
143+
$<$<TARGET_EXISTS:solve_interrupter_testing_pybind11>:'$<TARGET_FILE_NAME:solve_interrupter_testing_pybind11>',>
144144
'*.pyi'
145145
],
146146
},

0 commit comments

Comments
 (0)