[CMake] QT_QTDECLARATIVE_FOUND issue on N9(50)

Laszlo Papp lpapp at kde.org
Fri Jul 8 06:36:13 EDT 2011


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

I guess this simple example does not represent the issue well since it
is not provide any information about passing values among
CMakeLists.txt files.
Funky thing is that if I put the same conditions for the declarative
after this line:
https://projects.kde.org/projects/playground/games/gluon/repository/revisions/master/entry/core/CMakeLists.txt#L9

It works just fine. However I guess it is because the first occurence
in the build order. Does cmake have some issue about using something
like that more times on this platform ? Could you please investigate ?

Best Regards,
Laszlo Papp


More information about the CMake mailing list