File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ ENDMACRO (CHECK_GRASS)
39
39
# search for grass installations
40
40
41
41
# list of paths which to search - user's choice as first
42
- SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local/grass-6.3.cvs )
42
+ SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local)
43
43
44
44
# mac-specific path
45
45
IF (APPLE )
@@ -60,9 +60,14 @@ ENDIF (WITH_GRASS)
60
60
61
61
IF (GRASS_FOUND)
62
62
63
- # read grass version number and remove trailing newline
64
- FILE (READ ${GRASS_PREFIX} /etc/VERSIONNUMBER GRASS_VERSION)
65
- STRING (REPLACE "\n " "" GRASS_VERSION ${GRASS_VERSION} )
63
+ IF (NOT WIN32 )
64
+ # read grass version number and remove trailing newline
65
+ FILE (READ ${GRASS_PREFIX} /etc/VERSIONNUMBER GRASS_VERSION)
66
+ STRING (REPLACE "\n " "" GRASS_VERSION ${GRASS_VERSION} )
67
+ ELSE (NOT WIN32 )
68
+ # TODO: how to find out grass version on win?
69
+ SET (GRASS_VERSION "?" )
70
+ ENDIF (NOT WIN32 )
66
71
67
72
IF (NOT GRASS_FIND_QUIETLY)
68
73
MESSAGE (STATUS "Found GRASS: ${GRASS_PREFIX} (${GRASS_VERSION} )" )
You can’t perform that action at this time.
0 commit comments