We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa73d58 commit 425374cCopy full SHA for 425374c
cmake/cmake_uninstall.cmake.in
@@ -10,10 +10,10 @@ string(REGEX REPLACE "\n" ";" files "${files}")
10
foreach(file ${files})
11
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
12
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
13
- exec_program(
14
- "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+ execute_process(
+ COMMAND "@CMAKE_COMMAND@" -E remove "$ENV{DESTDIR}${file}"
15
OUTPUT_VARIABLE rm_out
16
- RETURN_VALUE rm_retval
+ RESULT_VARIABLE rm_retval
17
)
18
if(NOT "${rm_retval}" STREQUAL 0)
19
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
0 commit comments