Skip to content

Commit

Permalink
fixing uninstall on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Vlad Gheorghiu <[email protected]>
  • Loading branch information
vsoftco committed May 1, 2024
1 parent dcd07c8 commit a142531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/staq_uninstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ foreach(file ${files})
COMMAND @CMAKE_COMMAND@ -E rm "$ENV{DESTDIR}${file}"
OUTPUT_VARIABLE rm_out
RESULT_VARIABLE rm_retval)
if(NOT "${rm_retval}" STREQUAL 0)
message(STATUS "rm_out: ${rm_out}")
message(STATUS "rm_retval: ${rm_retval}")
if(${rm_retval})
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
endif()
else()
Expand Down

0 comments on commit a142531

Please sign in to comment.