[vtk-developers] VTKConfig.cmake not included by FindVTK in CMake 2.8?
David Gobbi
david.gobbi at gmail.com
Mon Jan 3 16:37:25 EST 2011
On Mon, Jan 3, 2011 at 8:58 PM, Brad King <brad.king at kitware.com> wrote:
> 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
Thanks for the explanation. It turns out that the VTKConfig variables
that I needed were there all along, but there were some other problems
with my CMake file that were keeping me from accessing them properly.
David
More information about the vtk-developers
mailing list