From: Ross Burton Date: Thu, 28 Nov 2019 10:33:07 +0000 (+0000) Subject: python3native: set PYTHON_EXECUTABLE for CMake X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~12604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afb8d456360d86254ab00f05866c34d947d02749;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 d98fb4c7583..182c11aa2e2 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 "