summaryrefslogtreecommitdiffstats
path: root/Modules/FindVTK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-04-21 15:33:47 (GMT)
committerBrad King <brad.king@kitware.com>2004-04-21 15:33:47 (GMT)
commit78803c01ea0cc13c38a0c208a9012897ece5f47f (patch)
tree788f57f8d6086f3b3770bc580b21c87d7dc7c204 /Modules/FindVTK.cmake
parentac8232e140fdc934cff8895f5cca80fb8ab4d49f (diff)
downloadCMake-78803c01ea0cc13c38a0c208a9012897ece5f47f.zip
CMake-78803c01ea0cc13c38a0c208a9012897ece5f47f.tar.gz
CMake-78803c01ea0cc13c38a0c208a9012897ece5f47f.tar.bz2
ENH: Terminate with a FATAL_ERROR if FIND_PACKAGE command was called with REQUIRED argument and package was not found.
Diffstat (limited to 'Modules/FindVTK.cmake')
-rw-r--r--Modules/FindVTK.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/FindVTK.cmake b/Modules/FindVTK.cmake
index 747e320..d2acc9a 100644
--- a/Modules/FindVTK.cmake
+++ b/Modules/FindVTK.cmake
@@ -124,5 +124,9 @@ ELSE(VTK_FOUND)
# 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)
+ MESSAGE(FATAL_ERROR ${VTK_DIR_MESSAGE})
+ ENDIF(VTK_FIND_REQUIRED)
ENDIF(NOT VTK_FIND_QUIETLY)
ENDIF(VTK_FOUND)