Escaping Hyphens with pkg-config through qmake
- by Nexus
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?