[cmake-developers] find_package without REQUIRED can cause fatal error now
Alexander Neundorf
neundorf at kde.org
Mon Jul 30 15:38:40 EDT 2012
On Monday 30 July 2012, Bill Hoffman wrote:
> Alex added this check:
> http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a2be068c
>
> It guards against broken installations of packages. This is a good
> thing. However, it is causing a failed test:
>
>
> http://open.cdash.org/buildSummary.php?buildid=2465838
>
>
> -- Checking FindVTK
> CMake Error at //lib/vtk-5.8/VTKTargets-debug.cmake:996 (MESSAGE):
> The imported target "vtkWrapTcl" references the file
>
> "//bin/vtkWrapTcl"
>
> but this file does not exist. Possible reasons include:
>
>
> So, there is a bad config file for VTK on this machine.
>
> However, if someone does an optional find_package it should not error
> out. If you were building a project that you did not write the cmake
> files for and came across this error for an optional part of the system
> you might be stuck.
The idea was that this is a sign of a broken install.
Can you uninstall the vtk-devel package (does this exist ?), because it is
broken, i.e. does not contain everything is claims to ?
I understand that this is maybe not expected behaviour for an optional
package, but maybe Brad is right ?
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120730/fc05c794/attachment.html>
More information about the cmake-developers
mailing list