summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass9
-rw-r--r--meta/classes/cmake.bbclass2
2 files changed, 8 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f9697a9ad8..a7ca3a6676 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -428,9 +428,12 @@ python () {
428 extraconf.append(items[1]) 428 extraconf.append(items[1])
429 appendVar('DEPENDS', extradeps) 429 appendVar('DEPENDS', extradeps)
430 appendVar('RDEPENDS_${PN}', extrardeps) 430 appendVar('RDEPENDS_${PN}', extrardeps)
431 if bb.data.inherits_class('cmake', d): 431 appendVar('PACKAGECONFIG_CONFARGS', extraconf)
432 appendVar('EXTRA_OECMAKE', extraconf) 432
433 else: 433 # TODO: once all recipes/classes abusing EXTRA_OECONF
434 # to get PACKAGECONFIG options are fixed to use PACKAGECONFIG_CONFARGS
435 # move this appendVar to autotools.bbclass.
436 if not bb.data.inherits_class('cmake', d):
434 appendVar('EXTRA_OECONF', extraconf) 437 appendVar('EXTRA_OECONF', extraconf)
435 438
436 pn = d.getVar('PN', True) 439 pn = d.getVar('PN', True)
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 22cd61eb06..02f313a861 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -27,6 +27,8 @@ OECMAKE_EXTRA_ROOT_PATH ?= ""
27OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY" 27OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY"
28OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM_class-native = "BOTH" 28OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM_class-native = "BOTH"
29 29
30EXTRA_OECMAKE_append = " ${PACKAGECONFIG_CONFARGS}"
31
30# CMake expects target architectures in the format of uname(2), 32# CMake expects target architectures in the format of uname(2),
31# which do not always match TARGET_ARCH, so all the necessary 33# which do not always match TARGET_ARCH, so all the necessary
32# conversions should happen here. 34# conversions should happen here.