[vtk-developers] Checking if VTK was built with a particular group enabled

David Doria daviddoria at gmail.com
Thu May 3 16:49:52 EDT 2012


Is there a way to check if a particular group was enabled when VTK was
built? Something like:

if(NOT VTK_Group_Views)
  message(FATAL_ERROR "You must build VTK with VTK_Group_Views=ON")
endif()

I tried the above code but it hits the error even though I built VTK
with VTK_Group_Views=ON. I'd rather have my users see an error like
that instead of "can't find vtkContextView.h" which would mean nothing
to a non-experienced VTK user.

Thanks,

David



More information about the vtk-developers mailing list