Skip to content

Commit 339008f

Browse files
authored
handle CMake deprecation warning (#342)
1 parent 0b40f71 commit 339008f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required (VERSION 3.0)
1+
cmake_minimum_required(VERSION 3.0...3.29)
22

33
project (MapCache C)
44

cmake/FindGDAL.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ if(UNIX)
7373
)
7474

7575
if(GDAL_CONFIG)
76-
exec_program(${GDAL_CONFIG} ARGS --libs OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
76+
execute_process(COMMAND ${GDAL_CONFIG} --libs OUTPUT_VARIABLE GDAL_CONFIG_LIBS)
7777
if(GDAL_CONFIG_LIBS)
7878
string(REGEX MATCHALL "-l[^ ]+" _gdal_dashl ${GDAL_CONFIG_LIBS})
7979
string(REGEX REPLACE "-l" "" _gdal_lib "${_gdal_dashl}")

0 commit comments

Comments
 (0)