From a6591f43c4f0d191cf7f8aaf77fc68c76871eb89 Mon Sep 17 00:00:00 2001
From: Andrew Maclean <andrew.amaclean@gmail.com>
Date: Wed, 6 Mar 2019 08:37:09 +1100
Subject: [PATCH] Further checks on vtk version

---
 src/Cxx/Geovis/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Cxx/Geovis/CMakeLists.txt b/src/Cxx/Geovis/CMakeLists.txt
index 03561fcb9db..0d18cd21d62 100644
--- a/src/Cxx/Geovis/CMakeLists.txt
+++ b/src/Cxx/Geovis/CMakeLists.txt
@@ -40,7 +40,7 @@ if (DEPRC_SRCS)
   list(REMOVE_ITEM ALL_FILES ${DEPRC_SRCS})
 endif()
 
-if(NOT VTK_LEGACY_REMOVE)
+if((NOT VTK_LEGACY_REMOVE) AND (VTK_VERSION VERSION_LESS "8.90.0"))
   Requires_Module(GeoGraticle vtkViewsGeovis)
 endif()
 
@@ -59,7 +59,7 @@ endforeach()
 if (BUILD_TESTING)
   # Testing
   set(KIT Geovis)
-  if(NOT VTK_LEGACY_REMOVE)
+  if((NOT VTK_LEGACY_REMOVE) AND (VTK_VERSION VERSION_LESS "8.90.0"))
     set(NEEDS_ARGS
       GeoGraticule
       )
-- 
GitLab