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.
1 parent c4c1e2e commit c6766ceCopy full SHA for c6766ce
cmake/cmake_uninstall.cmake.in
@@ -29,19 +29,7 @@ foreach(file ${files})
29
message(STATUS "Uninstalling ${filepath}")
30
31
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()
+ file(REMOVE "${filepath}")
45
else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
46
message(STATUS "File ${filepath} does not exist.")
47
endif()
0 commit comments