We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f50e83 commit 8c8db0eCopy full SHA for 8c8db0e
cmake/FindGRASS.cmake
@@ -18,7 +18,8 @@ MACRO (CHECK_GRASS_EXTRA_INCLUDE_DIRS GRASS_VERSION)
18
AND "${GRASS${GRASS_VERSION}_EXTRA_INCLUDE_DIRS}" STREQUAL "")
19
20
FILE(READ ${GRASS_INCLUDE_DIR${GRASS_VERSION}}/Make/Platform.make _platformfile)
21
- STRING(REGEX MATCH "INCLUDE_DIRS *= [^\n]*" _config_includes "${_platformfile}")
+ STRING(REGEX MATCH "INCLUDE_DIRS *= *[^\n]*" _config_includes "${_platformfile}")
22
+ SET(_extra_includes "")
23
IF(NOT "${_config_includes}" STREQUAL "")
24
STRING(REGEX REPLACE "INCLUDE_DIRS *= *([^\n]*)" "\\1" _extra_includes "${_config_includes}")
25
ENDIF()
0 commit comments