Skip to contentSkip to conversation

qmake5_paths.bbclass: Use Qt version path for headers

PATCH New Koen Kooi 1 participant 1 message May 19, 2014

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 qmake5_paths.bbclass: Use Qt version path for headers

From: Otavio Salvador <[email protected]>

When looking for Qt5 headers we ought to use the Qt5 specific path. In case the distribution wants to have a flat tree it can set QT_DIR_NAME and it will still works as expected.

---
 classes/qmake5_paths.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
classes/qmake5_paths.bbclass +1 -1
index 2b5bf4b..8f91e93 100644
@@ -5,7 +5,7 @@
 QT_DIR_NAME ?= "qt5"
 
 OE_QMAKE_PATH_PREFIX = "${prefix}"
-OE_QMAKE_PATH_HEADERS = "${includedir}"
+OE_QMAKE_PATH_HEADERS = "${includedir}/${QT_DIR_NAME}"
 OE_QMAKE_PATH_LIBS = "${libdir}"
 OE_QMAKE_PATH_ARCHDATA = "${libdir}"
 OE_QMAKE_PATH_DATA = "${datadir}"
Signature · 1 line
1.9.0