Skip to content

Commit

Permalink
Merge pull request #4 from DwangoMediaVillage/fix/use_appropriate_onn…
Browse files Browse the repository at this point in the history
…xruntime.dll_in_windows

Windowsで onnxruntime.dll が C:\Windows\System32 にあるもの(バージョン1.10) が優先されてしまう問題の解決
  • Loading branch information
ueshunJP authored Jul 23, 2024
2 parents afc3aef + 340e385 commit cc30dc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,10 @@ target_link_libraries(
domino
PRIVATE onnxruntime
)

if(WIN32)
add_custom_command(
TARGET pydomino POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${FETCHCONTENT_BASE_DIR}/onnxruntime-src/lib/onnxruntime.dll $<TARGET_FILE_DIR:pydomino>
)
endif()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def build_extension(self, ext: CMakeExtension) -> None:
# logic and declaration, and simpler if you include description/version in a file.
setup(
name="pydomino",
version="1.0.0",
version="1.0.1",
url="https://github.com/DwangoMediaVillage/pydomino",
author="DWANGO Co., Ltd.",
author_email="shun_ueda@dwango.co.jp",
Expand Down

0 comments on commit cc30dc3

Please sign in to comment.