Skip to contentSkip to conversation

cmake_qt5: prepend the Qt5 specific CMake variables to EXTRA_OECMAKE

PATCH Superseded Pascal Bach 1 participant 1 message May 11, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmake_qt5: prepend the Qt5 specific CMake variables to EXTRA_OECMAKE

Using the prepend function instead of "=+" makes sure the variables are set even if the user overrides EXTRA_OECMAKE with "=" instead of just appending to it.

Prepending also allows overriding because later arguments take precedence ever earlier ones in CMake.

---
 classes/cmake_qt5.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
classes/cmake_qt5.bbclass +1 -1
index 813ea0c..4dc897b 100644
@@ -3,7 +3,7 @@ inherit qmake5_paths
 
 DEPENDS_prepend = "qtbase "
 
-EXTRA_OECMAKE += " \
+EXTRA_OECMAKE_prepend = " \
     -DOE_QMAKE_PATH_PREFIX=${OE_QMAKE_PATH_PREFIX} \
     -DOE_QMAKE_PATH_HEADERS=${OE_QMAKE_PATH_HEADERS} \
     -DOE_QMAKE_PATH_LIBS=${OE_QMAKE_PATH_LIBS} \
Signature · 1 line
2.1.4