diff options
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r-- | meta/classes/cmake.bbclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index c9c15f3076..ab2adec782 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass | |||
@@ -1,3 +1,6 @@ | |||
1 | # Path to the CMake file to process. | ||
2 | OECMAKE_SOURCEPATH ?= "${S}" | ||
3 | |||
1 | DEPENDS_prepend = "cmake-native " | 4 | DEPENDS_prepend = "cmake-native " |
2 | B = "${WORKDIR}/build" | 5 | B = "${WORKDIR}/build" |
3 | 6 | ||
@@ -65,8 +68,8 @@ EOF | |||
65 | addtask generate_toolchain_file after do_patch before do_configure | 68 | addtask generate_toolchain_file after do_patch before do_configure |
66 | 69 | ||
67 | cmake_do_configure() { | 70 | cmake_do_configure() { |
68 | if [ "${OECMAKE_BUILDPATH}" -o "${OECMAKE_SOURCEPATH}" ]; then | 71 | if [ "${OECMAKE_BUILDPATH}" ]; then |
69 | bbnote "cmake.bbclass no longer uses OECMAKE_SOURCEPATH and OECMAKE_BUILDPATH. The default behaviour is now out-of-tree builds with B=WORKDIR/build." | 72 | bbnote "cmake.bbclass no longer uses OECMAKE_BUILDPATH. The default behaviour is now out-of-tree builds with B=WORKDIR/build." |
70 | fi | 73 | fi |
71 | 74 | ||
72 | if [ "${S}" != "${B}" ]; then | 75 | if [ "${S}" != "${B}" ]; then |
@@ -84,7 +87,7 @@ cmake_do_configure() { | |||
84 | 87 | ||
85 | cmake \ | 88 | cmake \ |
86 | ${OECMAKE_SITEFILE} \ | 89 | ${OECMAKE_SITEFILE} \ |
87 | ${S} \ | 90 | ${OECMAKE_SOURCEPATH} \ |
88 | -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ | 91 | -DCMAKE_INSTALL_PREFIX:PATH=${prefix} \ |
89 | -DCMAKE_INSTALL_BINDIR:PATH=${bindir} \ | 92 | -DCMAKE_INSTALL_BINDIR:PATH=${bindir} \ |
90 | -DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \ | 93 | -DCMAKE_INSTALL_SBINDIR:PATH=${sbindir} \ |