Browse Source

CMake: version 3.16 doesn't support the rm command

master
Riyyi 3 years ago
parent
commit
9b87ad7f1d
  1. 2
      cmake/uninstall.cmake.in

2
cmake/uninstall.cmake.in

@ -14,7 +14,7 @@ foreach(file ${files})
message(STATUS "Uninstalling: $ENV{DESTDIR}${file}") message(STATUS "Uninstalling: $ENV{DESTDIR}${file}")
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}") if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
execute_process(COMMAND "@CMAKE_COMMAND@" execute_process(COMMAND "@CMAKE_COMMAND@"
-E rm "$ENV{DESTDIR}${file}" -E remove "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval) RESULT_VARIABLE rm_retval)
if(NOT "${rm_retval}" STREQUAL 0) if(NOT "${rm_retval}" STREQUAL 0)

Loading…
Cancel
Save