Commit f570b3e1 authored by Ozan Tonkal's avatar Ozan Tonkal

cmake check if VTK version is lower than 5, and give fatal error if it is

parent 3f27ba54
......@@ -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))
......
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