On Thu, Feb 16, 2012 at 11:13 AM, Alexander Neundorf <neund...@kde.org> wrote:
> On Thursday 16 February 2012, Brad King wrote:
>> but I do not want to require every project to change almost every
>> find_package call and generate a policy warning about every call in
>> every old project release.
>
> My impression is that config.cmake files are not yet wide spread.
[snip]
> I mean, it may not be problem yet, because maybe 90 percent of the
> find_packages() calls use Find-modules, but I am quite sure it will become
> one.

So your proposal when no extra find_package mode arg is given is:

- search for FindFoo.cmake, use if found
- if not found, check new policy setting
- if not set, warn and follow OLD behavior
- if set to OLD, enter config mode and use current error if not found
- if set to NEW, present error about no FindFoo in module path

?

Separately the CONFIG and MODULE explicit mode args can be given
to be alternative to NO_MODULE.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to