cmake_uninstall - speed up the process and fix cmake warnings

This commit is contained in:
Andrej730
2026-01-26 16:01:24 +05:00
parent c4c1e2ebf9
commit c6766cefb7
+1 -13
View File
@@ -29,19 +29,7 @@ foreach(file ${files})
message(STATUS "Uninstalling ${filepath}") message(STATUS "Uninstalling ${filepath}")
if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") if(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
exec_program( file(REMOVE "${filepath}")
"@CMAKE_COMMAND@"
ARGS
"-E remove \"${filepath}\""
OUTPUT_VARIABLE
rm_out
RETURN_VALUE
rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
message(FATAL_ERROR "Problem when removing ${filepath}")
endif()
else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}") else(IS_SYMLINK "${filepath}" OR EXISTS "${filepath}")
message(STATUS "File ${filepath} does not exist.") message(STATUS "File ${filepath} does not exist.")
endif() endif()