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

Brad King brad.king at kitware.com
Fri May 4 11:13:01 EDT 2012


On 5/4/2012 11:09 AM, David Doria wrote:
> Is it intended behavior that if a module is not listed in the
> COMPONENTS list of find_package() it will not be available?

Yes.  If you list any components you will get just those and
${VTK_LIBRARIES} will contain only the relevant modules.  If
you want to use all available modules but verify that certain
modules are present then do

   find_package(VTK REQUIRED)
   if(NOT vtkModuleIWant_LOADED)
     message(FATAL_ERROR "vtkModuleIWant is required but not available")
   endif()

-Brad



More information about the vtk-developers mailing list