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

David E DeMarle dave.demarle at kitware.com
Thu May 3 17:06:50 EDT 2012


The list of modules gets configured into the VTK_MODULES_ENABLED
variable defined in vtkConfig.cmake, where UseVTK.cmake should pick it
up from.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, May 3, 2012 at 4:49 PM, David Doria <daviddoria at gmail.com> wrote:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>



More information about the vtk-developers mailing list