We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47ce308 + cb36c43 commit 3e82a26Copy full SHA for 3e82a26
cmake/cmake_uninstall.cmake.in
@@ -9,14 +9,7 @@ string(REGEX REPLACE "\n" ";" files "${files}")
9
foreach(file ${files})
10
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
11
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
12
- execute_process(
13
- COMMAND @CMAKE_COMMAND@ -E remove $ENV{DESTDIR}${file}
14
- OUTPUT_VARIABLE rm_out
15
- RESULT_VARIABLE rm_retval
16
- )
17
- if(NOT "${rm_retval}" STREQUAL 0)
18
- message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
19
- endif(NOT "${rm_retval}" STREQUAL 0)
+ FILE(REMOVE $ENV{DESTDIR}${file})
20
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
21
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
22
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
0 commit comments