[Qt-creator] QtCreator ignores scopes in .pro files

Orgad Shaneh orgads at gmail.com
Thu Nov 22 09:37:19 CET 2012


On Thu, Nov 22, 2012 at 10:11 AM, Christoph Mathys <eraserix at gmail.com>wrote:

> Which parts of qmake-files does QtCreator consider? Some libraries
> inside our project are optional, the .pro-file has clauses like this:
>
> exists(libOptional/libOptional.pro) {
>     SUBDIRS += libOptional
> }
>
> This is perfectly fine with qmake, but QtCreator complains regularly:
> Could not find .pro file for sub dir 'libOptional' in '$<PROJECTDIR>'
>
> This alone is a minor annoyance, but I suspect that this leads
> QtCreator to reparse the entire source tree if I hit Ctrl+B. Is there
> a way to include optional stuff that will allow QtCreator to "get it"?
>
> Christoph
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>

It is only parsed for UI reasons (entries in conditions that are
unsatisfied are usually still interesting for the user, they should be
displayed on the project view). It doesn't affect the build process.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20121122/a06d38bc/attachment.html>


More information about the Qt-creator mailing list