<div class="gmail_quote">On Tue, Sep 29, 2009 at 6:04 PM, Mateusz Loskot <span dir="ltr"><<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
3. The only way to get error is to explicitly use REQUIRED option<br>
<br>
FIND_PACKAGE(Boost 1.36 REQUIRED)<br>
<br>
but for FIND_PACKAGE(ZLIB) as explained in point 2. above<br>
it is not necessary to explicitly specify REQUIRED option<br>
and error is printed.<br>
<br>
I tested the original version of FindBoost from CMake 2.6 as well as<br>
today version from CVS. No difference regarding this issue.<br>
<br>
I used ZLIB as example but most of FindXXX macros work this way,<br>
<br>
In my opinion behaviours of FindBoost is inconsistent in comparison<br>
to other standard macros.<br></blockquote><div><br>Mateusz,<br><br>You're right, this is inconsistent. I've just fixed FindBoost in CVS to output the following to STATUS if Boost is not found:<br><br>-- Could NOT find Boost<br>
<br>I also added an option which if enabled outputs the more detailed error message (outputted in REQUIRED mode) below this line.<br><br>If you have any other CMake related suggestions please feel free to
accompany your mailing list posts with a feature request and/or patch
on the bugtracker if you have the time.<br>
<br><a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBoost.cmake?root=CMake&view=log">http://public.kitware.com/cgi-bin/viewcvs.cgi/Modules/FindBoost.cmake?root=CMake&view=log</a><br><br></div></div>
-- <br>Philip Lowman<br>