Skip to content

Commit 8c8db0e

Browse files
committed
Ensure GRASS plugin CMake extra includes macro works for all versions
1 parent 3f50e83 commit 8c8db0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/FindGRASS.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ MACRO (CHECK_GRASS_EXTRA_INCLUDE_DIRS GRASS_VERSION)
1818
AND "${GRASS${GRASS_VERSION}_EXTRA_INCLUDE_DIRS}" STREQUAL "")
1919

2020
FILE(READ ${GRASS_INCLUDE_DIR${GRASS_VERSION}}/Make/Platform.make _platformfile)
21-
STRING(REGEX MATCH "INCLUDE_DIRS *= [^\n]*" _config_includes "${_platformfile}")
21+
STRING(REGEX MATCH "INCLUDE_DIRS *= *[^\n]*" _config_includes "${_platformfile}")
22+
SET(_extra_includes "")
2223
IF(NOT "${_config_includes}" STREQUAL "")
2324
STRING(REGEX REPLACE "INCLUDE_DIRS *= *([^\n]*)" "\\1" _extra_includes "${_config_includes}")
2425
ENDIF()

0 commit comments

Comments
 (0)