CMake: version 3.16 doesn't support the rm command

This commit is contained in:
Riyyi
2022-02-07 12:57:11 +01:00
parent ef1fce060a
commit 9b87ad7f1d
+1 -1
View File
@@ -14,7 +14,7 @@ foreach(file ${files})
message(STATUS "Uninstalling: $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
execute_process(COMMAND "@CMAKE_COMMAND@"
-E rm "$ENV{DESTDIR}${file}"
-E remove "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval)
if(NOT "${rm_retval}" STREQUAL 0)