Skip to content

Commit

Permalink
Improved dll library copying
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Aug 21, 2023
1 parent efcbd7d commit 25c7699
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ if(WIN32)
set(depthai_dll_libraries "$<TARGET_RUNTIME_DLLS:${TARGET_NAME}>")
endif()
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD COMMAND
${CMAKE_COMMAND} -E copy ${depthai_dll_libraries} $<TARGET_FILE_DIR:${TARGET_NAME}>
"$<$<BOOL:${depthai_dll_libraries}>:${CMAKE_COMMAND};-E;copy_if_different;${depthai_dll_libraries};$<TARGET_FILE_DIR:${TARGET_NAME}>>"
COMMAND_EXPAND_LISTS
VERBATIM
)

# Disable "d" postfix, so python can import the library as is
Expand Down

0 comments on commit 25c7699

Please sign in to comment.