python3native: set PYTHON_EXECUTABLE for CMake

This ensures cmake uses the correct python binary rather than
potentially, the host system one.

(From OE-Core rev: afb8d456360d86254ab00f05866c34d947d02749)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2019-11-28 10:33:07 +00:00
committed by Richard Purdie
parent a345ef986a
commit dbcd6b6e7a

View File

@@ -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 "