diff options
author | Brad King <brad.king@kitware.com> | 2002-01-22 22:18:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-01-22 22:18:50 (GMT) |
commit | deba0b2317b3863168d1b7fed9201058aa0dccd7 (patch) | |
tree | 31441210ffb93dd59dbb3e833de024e9abe093ea /Modules/FindVTK.cmake | |
parent | ac1f2bcf6b827137689eeec19b5a67e2d626bd5b (diff) | |
download | CMake-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.cmake | 7 |
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) |