summaryrefslogtreecommitdiffstats
path: root/externals/cmake-modules/WindowsCopyFiles.cmake
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-22 20:28:26 +0200
committerGitHub <noreply@github.com>2018-06-22 20:28:26 +0200
commitea1880f47c27c9c0d597584a8fb610e856bb790f (patch)
tree11fda117f271f2db51aa8759fc7cc26b36181872 /externals/cmake-modules/WindowsCopyFiles.cmake
parentMerge pull request #579 from SciresM/master (diff)
parentUse Ninja for MSVC AppVeyor builds (diff)
downloadyuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar.gz
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar.bz2
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar.lz
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar.xz
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.tar.zst
yuzu-ea1880f47c27c9c0d597584a8fb610e856bb790f.zip
Diffstat (limited to 'externals/cmake-modules/WindowsCopyFiles.cmake')
-rw-r--r--externals/cmake-modules/WindowsCopyFiles.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/externals/cmake-modules/WindowsCopyFiles.cmake b/externals/cmake-modules/WindowsCopyFiles.cmake
index cd0c2ce47..a21b2e2d7 100644
--- a/externals/cmake-modules/WindowsCopyFiles.cmake
+++ b/externals/cmake-modules/WindowsCopyFiles.cmake
@@ -22,7 +22,7 @@ function(windows_copy_files TARGET SOURCE_DIR DEST_DIR)
# cmake adds an extra check for command success which doesn't work too well with robocopy
# so trick it into thinking the command was successful with the || cmd /c "exit /b 0"
add_custom_command(TARGET ${TARGET} POST_BUILD
- COMMAND if not exist ${DEST_DIR} mkdir ${DEST_DIR} 2> nul
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${DEST_DIR}
COMMAND robocopy ${SOURCE_DIR} ${DEST_DIR} ${ARGN} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0"
)
-endfunction() \ No newline at end of file
+endfunction()