From f570b3e18d27d7e5139327890fc274b0933952a6 Mon Sep 17 00:00:00 2001 From: Ozan Tonkal Date: Sun, 15 Sep 2013 11:24:20 +0200 Subject: [PATCH] cmake check if VTK version is lower than 5, and give fatal error if it is --- modules/viz/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt index fbc4167..74c9fd1 100644 --- a/modules/viz/CMakeLists.txt +++ b/modules/viz/CMakeLists.txt @@ -12,9 +12,9 @@ macro(find_qvtk) endmacro() macro(find_vtk) - find_package(VTK 5.10.0) - if(NOT VTK_FOUND) - find_package(VTK 6.0.0 REQUIRED) + find_package(VTK) + if(${VTK_MAJOR_VERSION} LESS 5) + MESSAGE(FATAL_ERROR "VTK 5 or more required!") endif() if(VTK_FOUND) if (BUILD_SHARED_LIBS OR (NOT BUILD_SHARED_LIBS AND NOT VTK_BUILD_SHARED_LIBS)) -- 2.7.4