Skip to content

Commit

Permalink
[cmake] Add missing OUTPUT_STRIP_TRAILING_WHITESPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Jan 18, 2024
1 parent 300b561 commit ad18f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeModules/Findmc_rtc_3rd_party_geos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ if(NOT TARGET GEOS::geos)
if(GEOS_CONFIG)
# Get GEOS_INSTALL_PREFIX from geos-config
execute_process(
COMMAND ${GEOS_CONFIG} --prefix OUTPUT_VARIABLE GEOS_INSTALL_PREFIX
COMMAND ${GEOS_CONFIG} --prefix
OUTPUT_VARIABLE GEOS_INSTALL_PREFIX
OUTPUT_STRIP_TRAILING_WHITESPACE
)
find_library(GEOS_LIBRARY NAME geos HINTS ${GEOS_INSTALL_PREFIX})
if(NOT GEOS_LIBRARY)
Expand Down

0 comments on commit ad18f7b

Please sign in to comment.