On Thu, Jul 7, 2011 at 1:19 PM, Laszlo Papp <lp...@kde.org> wrote: > Hi again :) > > > Hmm... OK. I'm not able to reproduce this problem. > > Do you know if the other *_FOUND variables are set? > > Yes, check this line out: > > https://projects.kde.org/projects/playground/games/gluon/repository/revisions/master/entry/player/CMakeLists.txt#L19 >
One thing I see in that file that is probably not what you intended: if(KDE4_FOUND) ... elseif(KDE4_FOUND) endif(KDE4_FOUND) That "elseif" should either be just a plain "else" or have a different condition in it than the "if"... 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...) > > The macro in question can be found below. > > > Is it also a problem if you run cmake on a CMakeLists.txt file with just > the > > following: > > > > find_package(Qt4) > > if(QT_QTDECLARATIVE_FOUND) > > message("found it") > > endif() > > Mmm, it is getting really weird because I get the "found it" message this > way. > > Best Regards, > Laszlo Papp > _______________________________________________ > 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://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ 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://www.cmake.org/mailman/listinfo/cmake