summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:32:29 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2023-07-24 21:59:24 (GMT)
commitedfa4d762d138753a3b4e47c567b0d819313c770 (patch)
treebaa004ccc3729e8e1f9366043685c407aac4a1eb
parent8776236161f0c9691cf5d63ddd39eb1d86180cba (diff)
downloadCMake-edfa4d762d138753a3b4e47c567b0d819313c770.zip
CMake-edfa4d762d138753a3b4e47c567b0d819313c770.tar.gz
CMake-edfa4d762d138753a3b4e47c567b0d819313c770.tar.bz2
cmake_uninstall.cmake.in: Replace exec_program() with execute_process()
-rw-r--r--cmake_uninstall.cmake.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake_uninstall.cmake.in b/cmake_uninstall.cmake.in
index b5fc700..9e61b00 100644
--- a/cmake_uninstall.cmake.in
+++ b/cmake_uninstall.cmake.in
@@ -7,10 +7,10 @@ string(REPLACE "\n" ";" files "${files}")
foreach(file ${files})
message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
if(EXISTS "$ENV{DESTDIR}${file}")
- exec_program(
- "@CMAKE_COMMAND@" ARGS "-E rm -f \"$ENV{DESTDIR}${file}\""
+ execute_process(
+ COMMAND "@CMAKE_COMMAND@" -E rm -f "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out
- RETURN_VALUE rm_retval
+ RESULT_VARIABLE rm_retval
)
if("${rm_retval}" STREQUAL 0)
else()