Skip to content

Commit c6766ce

Browse files
committed
cmake_uninstall - speed up the process and fix cmake warnings
1 parent c4c1e2e commit c6766ce

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

cmake/cmake_uninstall.cmake.in

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,7 @@ foreach(file ${files})
2929
message(STATUS "Uninstalling ${filepath}")
3030

3131
if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
32-
exec_program(
33-
"@CMAKE_COMMAND@"
34-
ARGS
35-
"-E remove \"${filepath}\""
36-
OUTPUT_VARIABLE
37-
rm_out
38-
RETURN_VALUE
39-
rm_retval
40-
)
41-
42-
if(NOT "${rm_retval}" STREQUAL 0)
43-
message(FATAL_ERROR "Problem when removing ${filepath}")
44-
endif()
32+
file(REMOVE "${filepath}")
4533
else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
4634
message(STATUS "File ${filepath} does not exist.")
4735
endif()

0 commit comments

Comments
 (0)