summaryrefslogtreecommitdiff
path: root/meta/classes/pythonnative.bbclass
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2014-12-03 13:40:54 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-24 17:48:58 +0000
commit66455b8a0758176996028bf23f04391c7baf8abd (patch)
tree22c046618f18483e83ac646b227cdca9789f7427 /meta/classes/pythonnative.bbclass
parente2664f563921467fe38bb74f4dd2a41eb004ee9f (diff)
downloadopenembedded-core-66455b8a0758176996028bf23f04391c7baf8abd.tar.gz
openembedded-core-66455b8a0758176996028bf23f04391c7baf8abd.tar.bz2
openembedded-core-66455b8a0758176996028bf23f04391c7baf8abd.zip
pythonnative: set PYTHON_EXECUTABLE so that cmake can find it
| CMake Error at /home/a.mueller/tmp/oe-core-glibc/sysroots/x86_64-linux/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): | Could NOT find PythonInterp (missing: PYTHON_EXECUTABLE) [RP: Added comment that is used by cmake] Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/pythonnative.bbclass')
-rw-r--r--meta/classes/pythonnative.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/pythonnative.bbclass b/meta/classes/pythonnative.bbclass
index fdd22bbc86..97029dc525 100644
--- a/meta/classes/pythonnative.bbclass
+++ b/meta/classes/pythonnative.bbclass
@@ -2,5 +2,7 @@
inherit python-dir
PYTHON="${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN}"
+# PYTHON_EXECUTABLE is used by cmake
+PYTHON_EXECUTABLE="${PYTHON}"
EXTRANATIVEPATH += "${PYTHON_PN}-native"
DEPENDS += " ${PYTHON_PN}-native "