Commit 92c8d6b7 authored by Dave Moxey's avatar Dave Moxey
Browse files

Adjust fix since vtkVersionMacros isn't present in VTK5

parent 1e3811e9
......@@ -36,6 +36,9 @@ IF( NEKTAR_USE_VTK )
FIND_PACKAGE(VTK)
IF (VTK_FOUND)
MESSAGE(STATUS "Found VTK: ${VTK_USE_FILE}")
IF (VTK_MAJOR_VERSION EQUAL 6 AND VTK_MINOR_VERSION EQUAL 0 AND VTK_BUILD_VERSION EQUAL 0)
ADD_DEFINITIONS(-DNEKTAR_HAS_VTK_6_0_0)
ENDIF()
ELSE (VTK_FOUND)
MESSAGE(FATAL_ERROR "VTK not found")
ENDIF (VTK_FOUND)
......
#include <vtkVersionMacros.h>
#if VTK_MAJOR_VERSION == 6 && VTK_MINOR_VERSION == 0 && VTK_PATCH_VERSION == 0
#if NEKTAR_HAS_VTK_6_0_0
#include <vtkMathConfigure.h>
#undef VTK_HAS_ISNAN
#undef VTK_HAS_ISINF
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment