Browse Source

FindGDAL: use execute_process instead of exec_program

Ben Boeckel 4 years ago
parent
commit
02e906305d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindGDAL.cmake

+ 1 - 1
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