BUG: don't fail with FATAL_ERROR if REQUIRED was not used
Alex
This commit is contained in:
parent
68d6394cef
commit
7500dd50ef
|
@ -130,11 +130,11 @@ IF(VTK_FOUND)
|
||||||
SET(USE_VTK_FILE ${VTK_USE_FILE})
|
SET(USE_VTK_FILE ${VTK_USE_FILE})
|
||||||
ELSE(VTK_FOUND)
|
ELSE(VTK_FOUND)
|
||||||
# VTK not found, explain to the user how to specify its location.
|
# VTK not found, explain to the user how to specify its location.
|
||||||
IF(NOT VTK_FIND_QUIETLY)
|
|
||||||
MESSAGE(FATAL_ERROR ${VTK_DIR_MESSAGE})
|
|
||||||
ELSE(NOT VTK_FIND_QUIETLY)
|
|
||||||
IF(VTK_FIND_REQUIRED)
|
IF(VTK_FIND_REQUIRED)
|
||||||
MESSAGE(FATAL_ERROR ${VTK_DIR_MESSAGE})
|
MESSAGE(FATAL_ERROR ${VTK_DIR_MESSAGE})
|
||||||
ENDIF(VTK_FIND_REQUIRED)
|
ELSE(VTK_FIND_REQUIRED)
|
||||||
|
IF(NOT VTK_FIND_QUIETLY)
|
||||||
|
MESSAGE(STATUS ${VTK_DIR_MESSAGE})
|
||||||
ENDIF(NOT VTK_FIND_QUIETLY)
|
ENDIF(NOT VTK_FIND_QUIETLY)
|
||||||
|
ENDIF(VTK_FIND_REQUIRED)
|
||||||
ENDIF(VTK_FOUND)
|
ENDIF(VTK_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue