[Qt-creator] qmake and backtick command arguments

Konstantin Tokarev annulen at yandex.ru
Mon Feb 22 11:17:42 CET 2016



22.02.2016, 11:55, "Nikos Chantziaras" <realnc at gmail.com>:
> On 22/02/16 10:45, Andrzej Telszewski wrote:
>>  On 22/02/16 09:39, Ziller Eike wrote:
>>>>  This yields yet another inconvenience. Using QMAKE_CFLAGS allows
>>>>  application to compile fine, but header files are not seen by Qt
>>>>  Creator and so cannot be nicely navigated.
>>>  Looks like Qt Creator handles QMAKE_CXXFLAGS, but not QMAKE_CFLAGS.
>>>
>>>  Br, Eike
>>
>>  OK, now I understand what you meant.
>>
>>  This works for navigation/browsing:
>>  QMAKE_CXXFLAGS += $$system(php-config --includes)
>>
>>  but this, does not work:
>>  QMAKE_CFLAGS += $$system(php-config --includes)
>
> INCLUDEPATH sets both of these automatically.

But output of pkg-config-like tools is supposed to be directly fed into compiler, e.g. if --includes output contains -isystem your code will fail.

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list