Problem with FindVc
Alexander Neundorf
[please enable javascript to see the address]
Wed Sep 26 21:52:48 CEST 2012
On Wednesday 26 September 2012, Matthias Kretz wrote:
> On Wednesday 26 September 2012 13:12:08 Sven Langkamp wrote:
> > > Which find_package() is failing ?
> >
> > I did test with find_package(Vc REQUIRED) and
> > macro_optional_find_package(Vc). It failed with both.
>
> FindVc.cmake does the following:
> "
> find_package(Vc ${Vc_FIND_VERSION} QUIET NO_MODULE PATHS $ENV{HOME}
> /opt/Vc)
>
> include(FindPackageHandleStandardArgs)
> find_package_handle_standard_args(Vc CONFIG_MODE)
> "
>
> The last line is the problem.
Yes, this means that the Find-module requires cmake 2.8.3 I think.
Now, when you do a
find_package(KDE4)
before, CMAKE_MODULE_PATH is adjusted so that the files installed by kdelibs
are used first.
They contain a FPHSA.cmake, which is not in sync with the most recent cmake
release.
So what can be done
We can increase the required cmake version by kdelibs, but this won't help you
until you require that newer vbersion of kdelibs.
You can work around it e.g. by tweaking CMAKE_MODULE_PATH, unset it before
doing
find_package(Vc)
and restore it afterwards (of course while keeping the directory where
FindVc.cmake is actually located).
Does that help ?
Alex
More information about the Vc
mailing list