Skip to content

Commit

Permalink
perf: remove uninstall target runtime warning (#97)
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock authored Apr 11, 2024
1 parent a9c6925 commit 1915f63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/install/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ string(REGEX REPLACE \"\\n\" \"\;\" files \"\${files}\")
foreach(file \${files})
message(STATUS \"Uninstalling \$ENV{DESTDIR}\${file}\")
if(IS_SYMLINK \"\$ENV{DESTDIR}\${file}\" OR EXISTS \"\$ENV{DESTDIR}\${file}\")
exec_program(
\"@CMAKE_COMMAND@\" ARGS \"-E remove \\\"\$ENV{DESTDIR}\${file}\\\"\"
execute_process(
COMMAND \${CMAKE_COMMAND} -E remove \"\$ENV{DESTDIR}\${file}\"
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
)
RESULT_VARIABLE rm_retval
)
if(NOT \"\${rm_retval}\" STREQUAL 0)
message(FATAL_ERROR \"Problem when removing \$ENV{DESTDIR}\${file}\")
endif()
Expand Down

0 comments on commit 1915f63

Please sign in to comment.