summaryrefslogtreecommitdiffstats
path: root/Modules/FindVTK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-01-22 22:18:50 (GMT)
committerBrad King <brad.king@kitware.com>2002-01-22 22:18:50 (GMT)
commitdeba0b2317b3863168d1b7fed9201058aa0dccd7 (patch)
tree31441210ffb93dd59dbb3e833de024e9abe093ea /Modules/FindVTK.cmake
parentac1f2bcf6b827137689eeec19b5a67e2d626bd5b (diff)
downloadCMake-deba0b2317b3863168d1b7fed9201058aa0dccd7.zip
CMake-deba0b2317b3863168d1b7fed9201058aa0dccd7.tar.gz
CMake-deba0b2317b3863168d1b7fed9201058aa0dccd7.tar.bz2
ENH: Added option of disabling error message when VTK is not found.
Diffstat (limited to 'Modules/FindVTK.cmake')
-rw-r--r--Modules/FindVTK.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/FindVTK.cmake b/Modules/FindVTK.cmake
index 9590480..395e6ed 100644
--- a/Modules/FindVTK.cmake
+++ b/Modules/FindVTK.cmake
@@ -15,6 +15,9 @@
# USE_INSTALLED_VTK is modified, and only if ONE of
# 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)
@@ -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.")
ELSE (USE_BUILT_VTK AND USE_INSTALLED_VTK)
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 (USE_BUILT_VTK AND USE_INSTALLED_VTK)