Skip to content

Commit

Permalink
cmake: Update support for CMake 3.28
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Feb 11, 2024
1 parent 9071b01 commit 71a5aef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.18...3.26)
cmake_minimum_required(VERSION 3.18...3.28)
message(STATUS "Configuring with CMake ${CMAKE_VERSION}")


Expand Down
7 changes: 3 additions & 4 deletions cmake/cmake_uninstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ 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}\""
OUTPUT_VARIABLE rm_out
RETURN_VALUE rm_retval
execute_process(
COMMAND "@CMAKE_COMMAND@" "-E" "rm" "$ENV{DESTDIR}${file}"
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 71a5aef

Please sign in to comment.