From 25c7699b2133a0deb3a463295b2658f58f734ae8 Mon Sep 17 00:00:00 2001 From: Martin Peterlin Date: Mon, 21 Aug 2023 09:30:30 +0200 Subject: [PATCH] Improved dll library copying --- CMakeLists.txt | 3 ++- depthai-core | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bdd118e6..d8fc4fee8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,8 +162,9 @@ if(WIN32) set(depthai_dll_libraries "$") endif() add_custom_command(TARGET ${TARGET_NAME} POST_BUILD COMMAND - ${CMAKE_COMMAND} -E copy ${depthai_dll_libraries} $ + "$<$:${CMAKE_COMMAND};-E;copy_if_different;${depthai_dll_libraries};$>" COMMAND_EXPAND_LISTS + VERBATIM ) # Disable "d" postfix, so python can import the library as is diff --git a/depthai-core b/depthai-core index 5198e8b6e..4310b9ded 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 5198e8b6e177e5be00e16ae3a6d0e9090267ee20 +Subproject commit 4310b9ded5ac2e09b69ab853a982646d0cb0df99