summaryrefslogtreecommitdiff
path: root/Modules/VTKCompatibility.cmake
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-12-13 12:11:14 -0500
committerKen Martin <ken.martin@kitware.com>2006-12-13 12:11:14 -0500
commite1a142f033f3842e19cd207c32fad384a0384772 (patch)
treeede7994831299e5f7ad50ba0d5f81259df4d38a5 /Modules/VTKCompatibility.cmake
parentcc73abf7e74edf0d6bc12bf6b2ba4e61837c2a73 (diff)
downloadcmake-e1a142f033f3842e19cd207c32fad384a0384772.tar.gz
ENH: fix for back VTK error message
Diffstat (limited to 'Modules/VTKCompatibility.cmake')
-rw-r--r--Modules/VTKCompatibility.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/VTKCompatibility.cmake b/Modules/VTKCompatibility.cmake
index 7b21bd8fe8..21d8aa0fb9 100644
--- a/Modules/VTKCompatibility.cmake
+++ b/Modules/VTKCompatibility.cmake
@@ -32,6 +32,7 @@ SET(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
SET(TIFF_RIGHT_VERSION 1)
# for very old VTK (versions prior to 4.2)
-if (NOT VTK_MAJOR_VERSION)
+MACRO(SOURCE_FILES)
message (FATAL_ERROR "You are trying to build a very old version of VTK (prior to VTK 4.2). To do this you need to use CMake 2.0 as it was the last version of CMake to support VTK 4.0.")
-endif (NOT VTK_MAJOR_VERSION)
+ENDMACRO(SOURCE_FILES)
+