[CMake] Re: pkg-config and cache

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Thu Jun 7 03:38:00 EDT 2007


Andreas Beckermann <b_mann at gmx.de> writes:

> The pkg_check_modules() macro works mostly fine (thanks a lot, btw,
> this saved me a lot of work), however I have one problem with it: once
> it checked whether the modules are available, it defines a variable
> __pkg_config_checked_<PREFIX> in CMakeCache.txt and won't check for
> these modules again, once that variable is defined.

It is a general flaw in CMake which affects other situations too... There is
missing something like './config.status --recheck' which would regenerate
the cache from scratch with the original cmdline and environment.



Enrico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20070607/6f91c06c/attachment-0001.pgp


More information about the CMake mailing list