<br><br><div class="gmail_quote">On Thu, Jul 7, 2011 at 1:19 PM, Laszlo Papp <span dir="ltr"><<a href="mailto:lpapp@kde.org">lpapp@kde.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi again :)<br>
<div class="im"><br>
> Hmm... OK. I'm not able to reproduce this problem.<br>
> Do you know if the other *_FOUND variables are set?<br>
<br>
</div>Yes, check this line out:<br>
<a href="https://projects.kde.org/projects/playground/games/gluon/repository/revisions/master/entry/player/CMakeLists.txt#L19" target="_blank">https://projects.kde.org/projects/playground/games/gluon/repository/revisions/master/entry/player/CMakeLists.txt#L19</a><br>
</blockquote><div><br>One thing I see in that file that is probably not what you intended:<br><br> if(KDE4_FOUND)<br> ...<br> elseif(KDE4_FOUND)<br> endif(KDE4_FOUND)<br>
<br>That "elseif" should either be just a plain "else" or have a different condition in it than the "if"...<br><br>That may be messing up subsequent if logic in an unexpected way... (If so, it seems like it's still a bug, but that would be a different issue...)<br>
<br><br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
The macro in question can be found below.<br>
<div class="im"><br>
> Is it also a problem if you run cmake on a CMakeLists.txt file with just the<br>
> following:<br>
><br>
> find_package(Qt4)<br>
> if(QT_QTDECLARATIVE_FOUND)<br>
> message("found it")<br>
> endif()<br>
<br>
</div>Mmm, it is getting really weird because I get the "found it" message this way.<br>
<br>
Best Regards,<br>
<font color="#888888">Laszlo Papp<br>
</font><div><div></div><div class="h5">_______________________________________________<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://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>