summaryrefslogtreecommitdiff
path: root/externals/cmake-modules/WindowsCopyFiles.cmake
diff options
context:
space:
mode:
authorGravatar bunnei2018-07-11 20:21:17 -0700
committerGravatar GitHub2018-07-11 20:21:17 -0700
commitafb26b190f3c6fb071515689eead864741688898 (patch)
tree97c8c40da088ccbaee3aca274cbe1982733e982d /externals/cmake-modules/WindowsCopyFiles.cmake
parentMerge pull request #646 from bunnei/fix-hid-smo (diff)
parentImprove directory creation in WindowsCopyFiles.cmake (diff)
downloadyuzu-afb26b190f3c6fb071515689eead864741688898.tar.gz
yuzu-afb26b190f3c6fb071515689eead864741688898.tar.xz
yuzu-afb26b190f3c6fb071515689eead864741688898.zip
Merge pull request #585 from janisozaur/patch-11
Improve directory creation in WindowsCopyFiles.cmake
Diffstat (limited to 'externals/cmake-modules/WindowsCopyFiles.cmake')
-rw-r--r--externals/cmake-modules/WindowsCopyFiles.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/externals/cmake-modules/WindowsCopyFiles.cmake b/externals/cmake-modules/WindowsCopyFiles.cmake
index cd0c2ce47..72cec5354 100644
--- a/externals/cmake-modules/WindowsCopyFiles.cmake
+++ b/externals/cmake-modules/WindowsCopyFiles.cmake
@@ -1,4 +1,4 @@
1# Copyright 2016 Citra Emulator Project 1# Copyright 2018 Yuzu Emulator Project
2# Licensed under GPLv2 or any later version 2# Licensed under GPLv2 or any later version
3# Refer to the license.txt file included. 3# Refer to the license.txt file included.
4 4
@@ -22,7 +22,7 @@ function(windows_copy_files TARGET SOURCE_DIR DEST_DIR)
22 # cmake adds an extra check for command success which doesn't work too well with robocopy 22 # cmake adds an extra check for command success which doesn't work too well with robocopy
23 # so trick it into thinking the command was successful with the || cmd /c "exit /b 0" 23 # so trick it into thinking the command was successful with the || cmd /c "exit /b 0"
24 add_custom_command(TARGET ${TARGET} POST_BUILD 24 add_custom_command(TARGET ${TARGET} POST_BUILD
25 COMMAND if not exist ${DEST_DIR} mkdir ${DEST_DIR} 2> nul 25 COMMAND ${CMAKE_COMMAND} -E make_directory ${DEST_DIR}
26 COMMAND robocopy ${SOURCE_DIR} ${DEST_DIR} ${ARGN} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0" 26 COMMAND robocopy ${SOURCE_DIR} ${DEST_DIR} ${ARGN} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0"
27 ) 27 )
28endfunction() \ No newline at end of file 28endfunction()