Escaping Hyphens with pkg-config through qmake

Posted by Nexus on Stack Overflow See other posts from Stack Overflow or by Nexus
Published on 2010-03-20T07:54:30Z Indexed on 2010/03/20 8:01 UTC
Read the original article Hit count: 589

Filed under:
|
|
|
|

I am trying to compile an application using qmake that is using pkg-config to bring in yaml-cpp. Unlike using pkg-config through the terminal qmake which is formatted like:

pkg-config --libs --cflags yaml-cpp

qmake actually spits out the include paths inside the make command like this:

-I/usr/local/include/yaml-cpp

This include path breaks subsequent includes which I've set in my qmake file. It's not possible for me to rearrange these includes due the order in which qmake parses its variables.

Is it possible using qmake to escape the quote somehow or to make it use the first quoted configuration?

© Stack Overflow or respective owner

Related posts about qmake

Related posts about pkg-config