File sdk-1.3.239.0-use-cmake-copy-command.patch of Package mingw64-vulkan-tools

diff -ur Vulkan-Tools-sdk-1.3.239.0.orig/icd/CMakeLists.txt Vulkan-Tools-sdk-1.3.239.0/icd/CMakeLists.txt
--- Vulkan-Tools-sdk-1.3.239.0.orig/icd/CMakeLists.txt	2023-01-26 00:34:27.000000000 +0100
+++ Vulkan-Tools-sdk-1.3.239.0/icd/CMakeLists.txt	2023-04-11 14:01:38.274751135 +0200
@@ -46,14 +46,14 @@
             foreach(config_file ${ICD_JSON_FILES})
                 file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/windows/${config_file}.json src_json)
                 file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${config_file}.json dst_json)
-                add_custom_target(${config_file}-json ALL COMMAND copy ${src_json} ${dst_json} VERBATIM)
+                add_custom_target(${config_file}-json ALL COMMAND ${CMAKE_COMMAND} -E copy ${src_json} ${dst_json} VERBATIM)
                 set_target_properties(${config_file}-json PROPERTIES FOLDER ${TOOLS_HELPER_FOLDER})
             endforeach(config_file)
         else()
             foreach(config_file ${ICD_JSON_FILES})
                 file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/windows/${config_file}.json src_json)
                 file(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/${config_file}.json dst_json)
-                add_custom_target(${config_file}-json ALL COMMAND copy ${src_json} ${dst_json} VERBATIM)
+                add_custom_target(${config_file}-json ALL COMMAND ${CMAKE_COMMAND} -E copy ${src_json} ${dst_json} VERBATIM)
             endforeach(config_file)
         endif()
     endif()
openSUSE Build Service is sponsored by