Skip to content
Permalink
Browse files
Fix unset variable error for CHECK_GRASS_EXTRA_INCLUDE_DIRS macro
  • Loading branch information
dakcarto committed Nov 30, 2016
1 parent ae75e45 commit c42dad3b1d454d030facc94c94d677f830842403
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmake/FindGRASS.cmake
@@ -136,7 +136,7 @@ MACRO (CHECK_GRASS G_PREFIX)
SET(GRASS_FOUND${GRASS_FIND_VERSION} TRUE)
SET(GRASS_FOUND TRUE) # GRASS_FOUND is true if at least one version was found
SET(GRASS_PREFIX${GRASS_CACHE_VERSION} ${G_PREFIX})
CHECK_GRASS_EXTRA_INCLUDE_DIRS(${GRASS_CACHE_VERSION})
CHECK_GRASS_EXTRA_INCLUDE_DIRS(${GRASS_FIND_VERSION})
IF(GRASS_FIND_VERSION EQUAL 6)
# Set also normal variable with number
SET(GRASS_INCLUDE_DIR${GRASS_FIND_VERSION} ${GRASS_INCLUDE_DIR${GRASS_CACHE_VERSION}})

0 comments on commit c42dad3

Please sign in to comment.