فهرست منبع

ENH: fix for back VTK error message

Ken Martin 19 سال پیش
والد
کامیت
e1a142f033
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      Modules/VTKCompatibility.cmake

+ 3 - 2
Modules/VTKCompatibility.cmake

@@ -32,6 +32,7 @@ SET(VTK_WGLEXT_FILE "${VTK_SOURCE_DIR}/Utilities/ParseOGLExt/headers/wglext.h"
 SET(TIFF_RIGHT_VERSION 1)
 SET(TIFF_RIGHT_VERSION 1)
 
 
 # for very old VTK (versions prior to 4.2)
 # 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.")
   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)
+