]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
cmake: clean up variables shared between .bb and .inc
authorRoss Burton <ross.burton@arm.com>
Mon, 16 Feb 2026 13:48:31 +0000 (13:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Feb 2026 18:02:43 +0000 (18:02 +0000)
Use EXTRA_OECMAKE in the non-cmake-inheriting cmake-native recipe, so
that the cmake.inc can assign once.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cmake/cmake-native_4.2.3.bb
meta/recipes-devtools/cmake/cmake_4.2.3.bb

index 128fef8a6e75f8635cb2fc05e730a7afecbde359..299cb4d1ea6eb0411ec58e0c78acebbf056e4748 100644 (file)
@@ -22,7 +22,7 @@ LIC_FILES_CHKSUM:append = " \
 B = "${WORKDIR}/build"
 do_configure[cleandirs] = "${B}"
 
-CMAKE_EXTRACONF = "\
+EXTRA_OECMAKE += "\
     -DCMAKE_LIBRARY_PATH=${STAGING_LIBDIR_NATIVE} \
     -DBUILD_CursesDialog=1 \
     -DCMAKE_USE_SYSTEM_LIBRARIES=1 \
@@ -41,7 +41,7 @@ do_configure () {
        ${S}/bootstrap --verbose --prefix=${prefix} \
                ${@oe.utils.parallel_make_argument(d, '--parallel=%d')} \
                ${@bb.utils.contains('CCACHE', 'ccache ', '--enable-ccache', '', d)} \
-               -- ${CMAKE_EXTRACONF}
+               -- ${EXTRA_OECMAKE}
 }
 
 do_compile() {
index 7c3dda2b15792472be0ba3c06993ca5a3133a59e..233ceeae153a0bfef749f552759767f7c76474fc 100644 (file)
@@ -33,7 +33,7 @@ python () {
     d.setVar("docdir_stripped", docdir_stripped)
 }
 
-EXTRA_OECMAKE = " \
+EXTRA_OECMAKE += " \
     -DCMAKE_DOC_DIR=${docdir_stripped}/cmake-${CMAKE_MAJOR_VERSION} \
     -DCMAKE_USE_SYSTEM_LIBRARIES=1 \
     -DCMAKE_USE_SYSTEM_LIBRARY_JSONCPP=0 \