[cmake-commits] martink committed VTKCompatibility.cmake 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Dec 12 13:59:33 EST 2006


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv15015

Modified Files:
	VTKCompatibility.cmake 
Log Message:
ENH: put in a better error message for VTK 4.0


Index: VTKCompatibility.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/VTKCompatibility.cmake,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- VTKCompatibility.cmake	12 Dec 2006 16:17:04 -0000	1.6
+++ VTKCompatibility.cmake	12 Dec 2006 18:59:30 -0000	1.7
@@ -31,3 +31,7 @@
 # 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)



More information about the Cmake-commits mailing list