+ do not pollute all projects with vtk options that don't use this library

This commit is contained in:
wmayer
2016-06-16 10:26:59 +02:00
parent e23973e1ed
commit c8a02521d4
2 changed files with 5 additions and 1 deletions

View File

@@ -559,7 +559,7 @@ endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
if(${VTK_MAJOR_VERSION} EQUAL 6)
if(${VTK_MINOR_VERSION} LESS 2)
add_definitions(-DVTK_NO_QUAD_POLY )
set(VTK_OPTIONS -DVTK_NO_QUAD_POLY)
endif()
if(${VTK_MINOR_VERSION} EQUAL 0)
message(WARNING "VTK <6.0 cannot be used with c++11, FEM postprocessing is disabled")