summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2019-11-28 10:33:07 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-04 12:29:30 +0000
commitafb8d456360d86254ab00f05866c34d947d02749 (patch)
treec2ba7a9bc5b63fd693c762a8ed3ab4be0e4d3a85 /meta
parentba540681ee2965c7222b9725f3755d5e8496f844 (diff)
downloadopenembedded-core-contrib-afb8d456360d86254ab00f05866c34d947d02749.tar.gz
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 <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/python3native.bbclass2
1 files changed, 2 insertions, 0 deletions
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 "