diff --git a/src/Cxx/Geovis/CMakeLists.txt b/src/Cxx/Geovis/CMakeLists.txt index 03561fcb9db95f3ebdfe3526a05614e125e6ace4..0d18cd21d6210fb40b8da8b42098105535974174 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 )