[CMake] QT_QTDECLARATIVE_FOUND issue on N9(50)

David Cole david.cole at kitware.com
Thu Jul 7 13:40:44 EDT 2011


Is it including FindQt twice, (because it's already included by a parent
CMakeLists.txt file), and something's not quite right about the include it
twice scenario w.r.t. this particular variable?

Back to the simple CMakeLists.txt:

find_package(Qt4)
if(QT_QTDECLARATIVE_FOUND)
 message("found it")
endif()

find_package(Qt4)
if(QT_QTDECLARATIVE_FOUND)
 message("found it again")
endif()


On Thu, Jul 7, 2011 at 1:32 PM, Laszlo Papp <lpapp at kde.org> wrote:

> Hi,
>
> > 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...)
>
> Thanks for pointing out about my buggyness (I pushed the fix) :)
>
> However, this did not solve the issue:
> -        elseif(KDE4_FOUND)
> +        else(KDE4_FOUND)
>
> Best Regards,
> Laszlo Papp
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110707/a58effa9/attachment.htm>


More information about the CMake mailing list