Skip to content

Commit

Permalink
handle CMake deprecation warning (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmckenna authored Jun 1, 2024
1 parent 0b40f71 commit 339008f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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.0)
cmake_minimum_required(VERSION 3.0...3.29)

project (MapCache C)

Expand Down
2 changes: 1 addition & 1 deletion cmake/FindGDAL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ if(UNIX)
)

if(GDAL_CONFIG)
exec_program(${GDAL_CONFIG} ARGS --libs OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
execute_process(COMMAND ${GDAL_CONFIG} --libs OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
if(GDAL_CONFIG_LIBS)
string(REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
string(REGEX REPLACE "-l" "" _gdal_lib "${_gdal_dashl}")
Expand Down

0 comments on commit 339008f

Please sign in to comment.