Skip to content

Commit

Permalink
Added grass76 support
Browse files Browse the repository at this point in the history
Added grass76 support; search for newer versions first
  • Loading branch information
neteler authored and nyalldawson committed Dec 27, 2018
1 parent 39f6830 commit 70b37e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/FindGRASS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ IF (UNIX)
ENDFOREACH(VERSION_MINOR)
ELSE (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
FOREACH (PATH /usr/lib64 /usr/lib)
FOREACH (VERSION grass70, grass72, grass74)
FOREACH (VERSION grass76, grass74, grass72, grass70)
LIST(APPEND GRASS_PATHS "${PATH}/${VERSION}")
ENDFOREACH (VERSION)
ENDFOREACH (PATH)
Expand All @@ -178,10 +178,10 @@ ENDIF (UNIX)
IF (APPLE)
IF (GRASS_FIND_VERSION EQUAL 7)
LIST(APPEND GRASS_PATHS
/Applications/GRASS-7.0.app/Contents/MacOS
/Applications/GRASS-7.1.app/Contents/MacOS
/Applications/GRASS-7.2.app/Contents/MacOS
/Applications/GRASS-7.6.app/Contents/MacOS
/Applications/GRASS-7.4.app/Contents/MacOS
/Applications/GRASS-7.2.app/Contents/MacOS
/Applications/GRASS-7.0.app/Contents/MacOS
)
ENDIF ()
LIST(APPEND GRASS_PATHS /Applications/GRASS.app/Contents/Resources)
Expand Down

0 comments on commit 70b37e4

Please sign in to comment.