Skip to content

Commit

Permalink
cmake: fix model_build_helper.pyi on windows (#4512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jan 24, 2025
1 parent e4b5fa5 commit 09be9a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,9 @@ add_custom_command(
${PYTHON_PROJECT}/.libs

COMMAND ${CMAKE_COMMAND} -E
$<IF:${need_unix_re2_lib},copy,true>
$<IF:$<BOOL:${BUILD_re2}>,copy,true>
$<${need_unix_re2_lib}:$<TARGET_SONAME_FILE:re2::re2>>
$<${need_windows_re2_lib}:$<TARGET_FILE:re2::re2>>
${PYTHON_PROJECT}/.libs

COMMAND ${CMAKE_COMMAND} -E
Expand Down
2 changes: 1 addition & 1 deletion ortools/python/__init__.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _load_ortools_libs():
except:
pass
else:
for dll in ["zlib1.dll", "abseil_dll.dll", "utf8_validity.dll", "libprotobuf.dll", "highs.dll"]:
for dll in ["zlib1.dll", "abseil_dll.dll", "utf8_validity.dll", "re2.dll", "libprotobuf.dll", "highs.dll"]:
dll_path = os.path.join(basedir, ".libs", dll)
if os.path.exists(dll_path):
print(f"load {dll_path}...")
Expand Down

0 comments on commit 09be9a9

Please sign in to comment.