On 22/02/16 12:17, Konstantin Tokarev wrote:
22.02.2016, 11:55, "Nikos Chantziaras" <rea...@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.
Yes. The documentation says that it only emits "-I" options
http://php.net/manual/en/install.pecl.php-config.php
but it might be lying, in which case QMAKE_C(XX)FLAGS is the defensive
approach.
_______________________________________________
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator