ENH: Added option of disabling error message when VTK is not found.

This commit is contained in:
Brad King 2002-01-22 17:18:50 -05:00
parent ac1f2bcf6b
commit deba0b2317
1 changed files with 6 additions and 1 deletions

View File

@ -15,6 +15,9 @@
# USE_INSTALLED_VTK is modified, and only if ONE of # USE_INSTALLED_VTK is modified, and only if ONE of
# these setting is set to ON. # these setting is set to ON.
# #
# If VTK is not found, an error is displayed unless VTK_FIND_QUIETLY
# is on.
#
# #
# Look for a binary tree (built from source) # Look for a binary tree (built from source)
@ -102,7 +105,9 @@ IF (USE_BUILT_VTK AND USE_INSTALLED_VTK)
MESSAGE ("Warning. Please make sure that only ONE of the USE_INSTALLED_VTK or USE_BUILT_VTK setting is set to ON.") MESSAGE ("Warning. Please make sure that only ONE of the USE_INSTALLED_VTK or USE_BUILT_VTK setting is set to ON.")
ELSE (USE_BUILT_VTK AND USE_INSTALLED_VTK) ELSE (USE_BUILT_VTK AND USE_INSTALLED_VTK)
IF (NOT USE_VTK_FILE) IF (NOT USE_VTK_FILE)
MESSAGE ("Warning. VTK might be found on your system as different flavours: installed VTK or built VTK. Please make sure that the VTK_INSTALL_PATH or VTK_BINARY_PATH setting reflects which VTK you are planning to use, then set ONE of the USE_INSTALLED_VTK or USE_BUILT_VTK setting to ON.") IF (NOT VTK_FIND_QUIETLY)
MESSAGE ("Warning. VTK might be found on your system as different flavours: installed VTK or built VTK. Please make sure that the VTK_INSTALL_PATH or VTK_BINARY_PATH setting reflects which VTK you are planning to use, then set ONE of the USE_INSTALLED_VTK or USE_BUILT_VTK setting to ON.")
ENDIF (NOT VTK_FIND_QUIETLY)
ENDIF (NOT USE_VTK_FILE) ENDIF (NOT USE_VTK_FILE)
ENDIF (USE_BUILT_VTK AND USE_INSTALLED_VTK) ENDIF (USE_BUILT_VTK AND USE_INSTALLED_VTK)