]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3native: set PYTHON_EXECUTABLE for CMake
authorRoss Burton <ross.burton@intel.com>
Thu, 28 Nov 2019 10:33:07 +0000 (10:33 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Dec 2019 12:29:30 +0000 (12:29 +0000)
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>
meta/classes/python3native.bbclass

index d98fb4c7583166c3f3fc0185d5a07e9a90483d28..182c11aa2e2677ba19983d0d049b5f2f26b0de13 100644 (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 "