Skip to content

Commit

Permalink
[cmake] Use execute_process instead of exec_program
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Jan 18, 2024
1 parent 77806f0 commit 300b561
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeModules/Findmc_rtc_3rd_party_geos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 300b561

Please sign in to comment.