mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-09-07 12:59:12 +01:00
Merge pull request #585 from janisozaur/patch-11
Improve directory creation in WindowsCopyFiles.cmake
This commit is contained in:
commit
afb26b190f
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Copyright 2016 Citra Emulator Project
|
# Copyright 2018 Yuzu Emulator Project
|
||||||
# Licensed under GPLv2 or any later version
|
# Licensed under GPLv2 or any later version
|
||||||
# Refer to the license.txt file included.
|
# Refer to the license.txt file included.
|
||||||
|
|
||||||
|
@ -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
|
# 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"
|
# so trick it into thinking the command was successful with the || cmd /c "exit /b 0"
|
||||||
add_custom_command(TARGET ${TARGET} POST_BUILD
|
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"
|
COMMAND robocopy ${SOURCE_DIR} ${DEST_DIR} ${ARGN} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0"
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
Loading…
Reference in a new issue