summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-02-10 20:18:10 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-02-11 14:46:10 (GMT)
commit02e906305d919f553d009488f8a25b248d01aa48 (patch)
tree546e45e72a8946a49d4d1b6f63c28ba2b70e2f5d
parent140344da14b5ab62db78328e06686bf03ba1fe14 (diff)
downloadCMake-02e906305d919f553d009488f8a25b248d01aa48.zip
CMake-02e906305d919f553d009488f8a25b248d01aa48.tar.gz
CMake-02e906305d919f553d009488f8a25b248d01aa48.tar.bz2
FindGDAL: use execute_process instead of exec_program
-rw-r--r--Modules/FindGDAL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindGDAL.cmake b/Modules/FindGDAL.cmake
index 2e0a5d0..80d91b2 100644
--- a/Modules/FindGDAL.cmake
+++ b/Modules/FindGDAL.cmake
@@ -86,7 +86,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)
# treat the output as a command line and split it up