From 02e906305d919f553d009488f8a25b248d01aa48 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 10 Feb 2021 15:18:10 -0500 Subject: FindGDAL: use execute_process instead of exec_program --- Modules/FindGDAL.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12