cmake check if VTK version is lower than 5, and give fatal error if it is
This commit is contained in:
parent
3f27ba54e0
commit
f570b3e18d
@ -12,9 +12,9 @@ macro(find_qvtk)
|
|||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
macro(find_vtk)
|
macro(find_vtk)
|
||||||
find_package(VTK 5.10.0)
|
find_package(VTK)
|
||||||
if(NOT VTK_FOUND)
|
if(${VTK_MAJOR_VERSION} LESS 5)
|
||||||
find_package(VTK 6.0.0 REQUIRED)
|
MESSAGE(FATAL_ERROR "VTK 5 or more required!")
|
||||||
endif()
|
endif()
|
||||||
if(VTK_FOUND)
|
if(VTK_FOUND)
|
||||||
if (BUILD_SHARED_LIBS OR (NOT BUILD_SHARED_LIBS AND NOT VTK_BUILD_SHARED_LIBS))
|
if (BUILD_SHARED_LIBS OR (NOT BUILD_SHARED_LIBS AND NOT VTK_BUILD_SHARED_LIBS))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user