Skip to content

Commit

Permalink
fix copy directory
Browse files Browse the repository at this point in the history
  • Loading branch information
caillonantoine committed May 12, 2023
1 parent 18b6ae9 commit cf02fa0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/frontend/puredata/nn_tilde/CMakeLists.txt
Expand Up @@ -49,12 +49,9 @@ add_custom_command(
endif()

if (MSVC) # COPY TORCH DLL IN THE LOADER FOLDER
add_custom_command(
TARGET nn
POST_BUILD
COMMAND cp "${TORCH_INSTALL_PREFIX}/lib/*.dll" "${CMAKE_CURRENT_BINARY_DIR}/"
COMMENT "Copy Torch Libraries"
)
add_custom_command(TARGET nn POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${TORCH_INSTALL_PREFIX}/lib/" ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/
)
endif()

if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
Expand Down

0 comments on commit cf02fa0

Please sign in to comment.