On Thu, Feb 16, 2012 at 11:57 AM, Brad King <span dir="ltr"><<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Feb 16, 2012 at 11:13 AM, Alexander Neundorf <<a href="mailto:neundorf@kde.org">neundorf@kde.org</a>> wrote:<br>
> On Thursday 16 February 2012, Brad King wrote:<br>
</div><div class="im">>> but I do not want to require every project to change almost every<br>
>> find_package call and generate a policy warning about every call in<br>
>> every old project release.<br>
><br>
> My impression is that config.cmake files are not yet wide spread.<br>
</div>[snip]<br>
<div class="im">> I mean, it may not be problem yet, because maybe 90 percent of the<br>
> find_packages() calls use Find-modules, but I am quite sure it will become<br>
> one.<br>
<br>
</div>So your proposal when no extra find_package mode arg is given is:<br>
<br>
- search for FindFoo.cmake, use if found<br>
- if not found, check new policy setting<br>
- if not set, warn and follow OLD behavior<br>
- if set to OLD, enter config mode and use current error if not found<br>
- if set to NEW, present error about no FindFoo in module path<br>
<br>
?<br>
<br>
Separately the CONFIG and MODULE explicit mode args can be given<br>
to be alternative to NO_MODULE.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brad<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers</a><br>
</div></div></blockquote></div><br><div><br></div><div>I'm not seeing this as a huge problem.</div><div><br></div><div>A failed find_package means that some package that your project depends on cannot be found.</div>
<div><br></div><div>If a developer can't figure out that means he has to build/install that package correctly first, then what chance does he have building your software at all?</div><div><br></div><div>The error message we have is very clear, although fairly verbose, giving multiple ways to attempt correcting the problem.</div>
<div><br></div><div>I don't think we need to change anything in a hurry here.</div><div><br></div><div><br></div><div>David</div><div><br></div>