[vtk-developers] VTKConfig.cmake not included by FindVTK in CMake 2.8?

Brad King brad.king at kitware.com
Mon Jan 3 15:58:34 EST 2011


On 01/03/2011 03:33 PM, David Gobbi wrote:
> I've been modifying some of my projects to work with the upcoming VTK
> 5.8 release, but have encountered a stumbling block.  In CMake 2.6,
> FindVTK.cmake explicitly called INCLUDE(${VTK_DIR}/VTKConfig.cmake).
> But the FindVTK in CMake 2.8.3 doesn't.

Yes it does, but not with an explicit include().  When someone writes

  find_package(VTK)

then the find_package command will run FindVTK.cmake which then runs

  FIND_PACKAGE(VTK QUIET NO_MODULE)

which looks for VTKConfig.cmake *and* includes it if found.

-Brad



More information about the vtk-developers mailing list