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 e60eec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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
5 changes: 2 additions & 3 deletions cmake/cmake_uninstall.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ 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
execute_process(
COMMAND "@CMAKE_COMMAND@" "-E" "remove" "$ENV{DESTDIR}${file}"
RETURN_VALUE rm_retval
)
if(NOT "${rm_retval}" STREQUAL 0)
Expand Down

0 comments on commit e60eec8

Please sign in to comment.