diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-12-12 18:59:30 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-12-12 18:59:30 (GMT) |
commit | af2b0e023ab7852038ff7c06281dee48a445eeaa (patch) | |
tree | a165ceb1adfd97996a893ade1bb1f3c0656b4aac /Modules/VTKCompatibility.cmake | |
parent | 62b368f3d52e4d3899a43b32d26e26e11cbeb158 (diff) | |
download | CMake-af2b0e023ab7852038ff7c06281dee48a445eeaa.zip CMake-af2b0e023ab7852038ff7c06281dee48a445eeaa.tar.gz CMake-af2b0e023ab7852038ff7c06281dee48a445eeaa.tar.bz2 |
ENH: put in a better error message for VTK 4.0
Diffstat (limited to 'Modules/VTKCompatibility.cmake')
-rw-r--r-- | Modules/VTKCompatibility.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/VTKCompatibility.cmake b/Modules/VTKCompatibility.cmake index f8330a7..7b21bd8 100644 --- a/Modules/VTKCompatibility.cmake +++ b/Modules/VTKCompatibility.cmake @@ -31,3 +31,7 @@ SET(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h" # work around an old bug in VTK SET(TIFF_RIGHT_VERSION 1) +# for very old VTK (versions prior to 4.2) +if (NOT VTK_MAJOR_VERSION) + 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) |