summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA
diff options
context:
space:
mode:
authorJohnny Jazeix <jazeix@gmail.com>2019-11-13 21:24:41 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-11-13 23:02:18 (GMT)
commit2d0100fac7a51327ce8053b4ab2277aaa96c12a5 (patch)
tree4e18ae98f53620d700a6727cf6a18c77dc2874a6 /Modules/FindCUDA
parent5239fc5c753502e91a1ea6859842d7fc24a36253 (diff)
downloadCMake-2d0100fac7a51327ce8053b4ab2277aaa96c12a5.zip
CMake-2d0100fac7a51327ce8053b4ab2277aaa96c12a5.tar.gz
CMake-2d0100fac7a51327ce8053b4ab2277aaa96c12a5.tar.bz2
replace remove and remove_directory with rm in tests
Diffstat (limited to 'Modules/FindCUDA')
-rw-r--r--Modules/FindCUDA/run_nvcc.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/FindCUDA/run_nvcc.cmake b/Modules/FindCUDA/run_nvcc.cmake
index af15d55..ba35433 100644
--- a/Modules/FindCUDA/run_nvcc.cmake
+++ b/Modules/FindCUDA/run_nvcc.cmake
@@ -174,7 +174,7 @@ endmacro()
# Delete the target file
cuda_execute_process(
"Removing ${generated_file}"
- COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
+ COMMAND "${CMAKE_COMMAND}" -E rm -f "${generated_file}"
)
# For CUDA 2.3 and below, -G -M doesn't work, so remove the -G flag
@@ -241,7 +241,7 @@ endif()
# Delete the temporary file
cuda_execute_process(
"Removing ${cmake_dependency_file}.tmp and ${NVCC_generated_dependency_file}"
- COMMAND "${CMAKE_COMMAND}" -E remove "${cmake_dependency_file}.tmp" "${NVCC_generated_dependency_file}"
+ COMMAND "${CMAKE_COMMAND}" -E rm -f "${cmake_dependency_file}.tmp" "${NVCC_generated_dependency_file}"
)
if(CUDA_result)
@@ -267,7 +267,7 @@ if(CUDA_result)
# Since nvcc can sometimes leave half done files make sure that we delete the output file.
cuda_execute_process(
"Removing ${generated_file}"
- COMMAND "${CMAKE_COMMAND}" -E remove "${generated_file}"
+ COMMAND "${CMAKE_COMMAND}" -E rm -f "${generated_file}"
)
message(FATAL_ERROR "Error generating file ${generated_file}")
else()