From 300b5616642dc8952a8ec943e5cd58432350156f Mon Sep 17 00:00:00 2001 From: Pierre Gergondet Date: Thu, 18 Jan 2024 18:21:33 +0900 Subject: [PATCH] [cmake] Use execute_process instead of exec_program --- CMakeModules/Findmc_rtc_3rd_party_geos.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeModules/Findmc_rtc_3rd_party_geos.cmake b/CMakeModules/Findmc_rtc_3rd_party_geos.cmake index 71cbf32702..90aaf8193c 100644 --- a/CMakeModules/Findmc_rtc_3rd_party_geos.cmake +++ b/CMakeModules/Findmc_rtc_3rd_party_geos.cmake @@ -28,10 +28,8 @@ if(NOT TARGET GEOS::geos) ) if(GEOS_CONFIG) # Get GEOS_INSTALL_PREFIX from geos-config - exec_program( - ${GEOS_CONFIG} ARGS - --prefix - OUTPUT_VARIABLE GEOS_INSTALL_PREFIX + execute_process( + COMMAND ${GEOS_CONFIG} --prefix OUTPUT_VARIABLE GEOS_INSTALL_PREFIX ) find_library(GEOS_LIBRARY NAME geos HINTS ${GEOS_INSTALL_PREFIX}) if(NOT GEOS_LIBRARY)