File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,7 @@ string(REGEX REPLACE "\n" ";" files "${files}")
9
9
foreach (file ${files} )
10
10
message (STATUS "Uninstalling $ENV{DESTDIR} ${file} " )
11
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 )
12
+ FILE (REMOVE $ENV{DESTDIR} ${file} )
20
13
else (IS_SYMLINK "$ENV{DESTDIR} ${file} " OR EXISTS "$ENV{DESTDIR} ${file} " )
21
14
message (STATUS "File $ENV{DESTDIR} ${file} does not exist." )
22
15
endif (IS_SYMLINK "$ENV{DESTDIR} ${file} " OR EXISTS "$ENV{DESTDIR} ${file} " )
You can’t perform that action at this time.
0 commit comments