From 5c3d5d08495073178bedccbc688ac3f3eb73abe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Tue, 5 Jun 2018 22:46:54 +0200 Subject: Use Ninja for MSVC AppVeyor builds --- externals/cmake-modules/WindowsCopyFiles.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'externals/cmake-modules') 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() -- cgit v1.2.3