From: Ross Burton Date: Thu, 28 Nov 2019 10:33:07 +0000 (+0000) Subject: python3native: set PYTHON_EXECUTABLE for CMake X-Git-Tag: uninative-2.8~934 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=afb8d456360d86254ab00f05866c34d947d02749;p=openembedded-core.git python3native: set PYTHON_EXECUTABLE for CMake This ensures cmake uses the correct python binary rather than potentially, the host system one. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/python3native.bbclass b/meta/classes/python3native.bbclass index d98fb4c758..182c11aa2e 100644 --- a/meta/classes/python3native.bbclass +++ b/meta/classes/python3native.bbclass @@ -1,6 +1,8 @@ inherit python3-dir PYTHON="${STAGING_BINDIR_NATIVE}/python3-native/python3" +# PYTHON_EXECUTABLE is used by cmake +PYTHON_EXECUTABLE="${PYTHON}" EXTRANATIVEPATH += "python3-native" DEPENDS_append = " python3-native "