Skip to content

Commit

Permalink
Merge branch 'dev' of http://github.com/wb2osz/direwolf into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed May 6, 2024
2 parents 75d910c + f233bfb commit fbd9b25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/include/uninstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ 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}")
Expand Down

0 comments on commit fbd9b25

Please sign in to comment.