How to determine ia a module is present in a built VTK without generating a cmake error?<div><br></div><div>Find_Package(VTK COMPONENTS vtkXXX) will report a cmake error if vtkXXX is not present.</div><div><br></div><div>I thought I could do this:</div>
<div><br></div><div>Find_Package(VTK QUIET COMPONENTS vtkXXX)</div><div>if (NOT VTK_FOUND)</div><div>  message(STATUS "Warning vtkXXX is required but not available")</div><div>endif()<br clear="all"><div><br></div>
but Find_Package(VTK QUIET COMPONENTS vtkXXX) also reports an error.</div><div><br></div><div><div>CMake Error at CMake/vtkModuleAPI.cmake:90 (message):</div><div>  Requested modules not available:</div><div><br></div><div>
    vtkXXX</div><div>Call Stack (most recent call first):</div><div>  /Users/lorensen/ProjectsGIT/VTK-build/VTKConfig.cmake:72 (vtk_module_config)</div><div>  /Applications/CMake 2.8-7.app/Contents/share/cmake-2.8/Modules/FindVTK.cmake:73 (FIND_PACKAGE)</div>
<div>  Examples/CMakeLists.txt:10 (FIND_PACKAGE)</div></div><div><br></div><div>I want to disable certain builds if a given component is missing.</div><div><br></div><div>Bill</div><div><br>
</div>