Skip to content

Commit 03debe3

Browse files
author
timlinux
committed
Fix Parse error. Function missing ending ). Instead found left paren with text (. on line 7. Did this by separating logic for 'directory present' and 'is a directory' checks
git-svn-id: http://svn.osgeo.org/qgis/trunk@10937 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent befe25c commit 03debe3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/plugins/grass/CMakeLists.txt

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ ELSE (GRASS_NUM_VERSION LESS 60300)
44
SET (GRASS_MODULES_DIR "modules-${GRASS_MAJOR_VERSION}.${GRASS_MINOR_VERSION}")
55
ENDIF (GRASS_NUM_VERSION LESS 60300)
66

7-
IF (NOT (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}" AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}"))
8-
MESSAGE (SEND_ERROR "Your GRASS version is not supported.")
9-
ENDIF (NOT (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}" AND IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}"))
7+
IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}")
8+
MESSAGE (SEND_ERROR "Your GRASS version is not supported (${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR} is not found).")
9+
ENDIF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}")
10+
IF (NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}")
11+
MESSAGE (SEND_ERROR "Your GRASS version is not supported (${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR} is not a Directory).")
12+
ENDIF (NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${GRASS_MODULES_DIR}")
1013

1114
SUBDIRS(modules-common ${GRASS_MODULES_DIR} scripts themes)
1215

0 commit comments

Comments
 (0)