Skip to content

Commit

Permalink
fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pet-mit committed Feb 18, 2025
1 parent b666e9a commit eee4fd1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@

full_patch.append(
Addition(
Path.cwd()/'cmake'/'cpp.cmake',
' $<$<BOOL:${USE_SCIP}>:libscip>\n',
' $<$<BOOL:${USE_SIRIUS}>:sirius_solver>\n'))
Path.cwd()/'cmake'/'cpp.cmake',
' $<$<BOOL:${USE_SCIP}>:libscip>\n',
' $<$<BOOL:${USE_SIRIUS}>:sirius_solver>\n'))
full_patch.append(Addition(
Path.cwd()/'cmake'/'cpp.cmake',
'''
Expand Down Expand Up @@ -81,13 +81,13 @@
Path.cwd()/'examples'/'cpp'/'linear_programming.cc',
' RunLinearProgrammingExample("XPRESS_LP");\n',
' RunLinearProgrammingExample("SIRIUS_LP");\n'
))
))

full_patch.append(Addition(
Path.cwd()/'examples'/'dotnet'/'cslinearprogramming.cs',
' RunLinearProgrammingExample("XPRESS_LP");\n',
' RunLinearProgrammingExample("SIRIUS_LP");\n'
))
))

full_patch.append(Addition(
Path.cwd()/'examples'/'java'/'LinearProgramming.java',
Expand All @@ -112,13 +112,14 @@
Path.cwd()/'ortools'/'linear_solver'/'CMakeLists.txt',
''' add_test(NAME cxx_unittests_xpress_interface COMMAND test_xprs_interface)
''',
''' if (USE_SIRIUS)
''' endif()
if (USE_SIRIUS)
add_executable(test_sirius_interface sirius_interface_test.cc)
target_compile_features(test_sirius_interface PRIVATE cxx_std_17)
target_link_libraries(test_sirius_interface PRIVATE ortools::ortools GTest::gtest_main)
add_test(NAME cxx_unittests_sirius_interface COMMAND test_sirius_interface)
endif()
'''))

# add the SIRIUS support in ortools/linear_solver/linear_solver.cc & .h
Expand Down

0 comments on commit eee4fd1

Please sign in to comment.