From afb8d456360d86254ab00f05866c34d947d02749 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Thu, 28 Nov 2019 10:33:07 +0000 Subject: 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 --- meta/classes/python3native.bbclass | 2 ++ 1 file changed, 2 insertions(+) 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 " -- cgit 1.2.3-korg