Skip to content

Commit bfefdeb

Browse files
committed
copy dll automatically
1 parent 089dcc9 commit bfefdeb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/models/voxtral/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,15 @@ endif()
113113
target_include_directories(voxtral_runner PUBLIC ${_common_include_directories})
114114
target_link_libraries(voxtral_runner PUBLIC ${link_libraries})
115115
target_compile_options(voxtral_runner PUBLIC ${_common_compile_options})
116+
117+
# On Windows, copy required DLLs to the executable directory
118+
if(MSVC AND EXECUTORCH_BUILD_CUDA)
119+
add_custom_command(
120+
TARGET voxtral_runner
121+
POST_BUILD
122+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
123+
$<TARGET_FILE:aoti_cuda_shims>
124+
$<TARGET_FILE_DIR:voxtral_runner>
125+
COMMENT "Copying aoti_cuda_shims.dll to voxtral_runner directory"
126+
)
127+
endif()

0 commit comments

Comments
 (0)