swig: Fix python build when using swig 4.1.0

This commit is contained in:
Corentin Le Molgat
2022-11-07 15:29:16 +01:00
parent f5d55602bc
commit ecd2afe4bb
6 changed files with 6 additions and 24 deletions

View File

@@ -14,7 +14,7 @@
set_property(SOURCE linear_solver.i PROPERTY CPLUSPLUS ON)
set_property(SOURCE linear_solver.i PROPERTY SWIG_MODULE_NAME pywraplp)
set_property(SOURCE linear_solver.i PROPERTY COMPILE_DEFINITIONS
${OR_TOOLS_COMPILE_DEFINITIONS} ABSL_MUST_USE_RESULT)
${OR_TOOLS_COMPILE_DEFINITIONS} ABSL_MUST_USE_RESULT=)
swig_add_library(pywraplp
TYPE MODULE
LANGUAGE python