diff --git a/recipes-slint/slint/slint-cpp-v2.inc b/recipes-slint/slint/slint-cpp-v2.inc index ef202ed..cb98320 100644 --- a/recipes-slint/slint/slint-cpp-v2.inc +++ b/recipes-slint/slint/slint-cpp-v2.inc @@ -77,7 +77,8 @@ do_install() { OECMAKE_C_COMPILER = "${RUST_TARGET_CC}" OECMAKE_CXX_COMPILER = "${RUST_TARGET_CXX}" -EXTRA_OECMAKE:append = " -DRust_CARGO_TARGET=${HOST_SYS}" +RUST_CARGO_TARGET = "${@d.getVar('RUST_HOST_SYS') or d.getVar('HOST_SYS')}" +EXTRA_OECMAKE:append = " -DRust_CARGO_TARGET=${RUST_CARGO_TARGET}" EXTRA_OECMAKE:append = " -DFETCHCONTENT_FULLY_DISCONNECTED=OFF" EXTRA_OECMAKE:append = " -DBUILD_TESTING=OFF -DSLINT_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo"