diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-02-10 20:18:10 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-02-11 14:46:10 (GMT) |
commit | 02e906305d919f553d009488f8a25b248d01aa48 (patch) | |
tree | 546e45e72a8946a49d4d1b6f63c28ba2b70e2f5d | |
parent | 140344da14b5ab62db78328e06686bf03ba1fe14 (diff) | |
download | CMake-02e906305d919f553d009488f8a25b248d01aa48.zip CMake-02e906305d919f553d009488f8a25b248d01aa48.tar.gz CMake-02e906305d919f553d009488f8a25b248d01aa48.tar.bz2 |
FindGDAL: use execute_process instead of exec_program
-rw-r--r-- | Modules/FindGDAL.cmake | 2 |
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 |