summaryrefslogtreecommitdiffstats
path: root/Modules/FindVTK.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-04-27 11:35:21 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-04-27 11:35:21 (GMT)
commit7500dd50ef9d0b625948933bfdb184abf61555bb (patch)
treea0ea4a61f8236acae09991d16350bd7c7a891489 /Modules/FindVTK.cmake
parent68d6394cef95edf789888e246fcd07531078f55b (diff)
downloadCMake-7500dd50ef9d0b625948933bfdb184abf61555bb.zip
CMake-7500dd50ef9d0b625948933bfdb184abf61555bb.tar.gz
CMake-7500dd50ef9d0b625948933bfdb184abf61555bb.tar.bz2
BUG: don't fail with FATAL_ERROR if REQUIRED was not used
Alex
Diffstat (limited to 'Modules/FindVTK.cmake')
-rw-r--r--Modules/FindVTK.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/FindVTK.cmake b/Modules/FindVTK.cmake
index f79a702..6e42ba3 100644
--- a/Modules/FindVTK.cmake
+++ b/Modules/FindVTK.cmake
@@ -130,11 +130,11 @@ IF(VTK_FOUND)
SET(USE_VTK_FILE ${VTK_USE_FILE})
ELSE(VTK_FOUND)
# VTK not found, explain to the user how to specify its location.
- IF(NOT VTK_FIND_QUIETLY)
+ IF(VTK_FIND_REQUIRED)
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)
+ ELSE(VTK_FIND_REQUIRED)
+ IF(NOT VTK_FIND_QUIETLY)
+ MESSAGE(STATUS ${VTK_DIR_MESSAGE})
+ ENDIF(NOT VTK_FIND_QUIETLY)
+ ENDIF(VTK_FIND_REQUIRED)
ENDIF(VTK_FOUND)