summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-01-10 16:34:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-14 11:33:19 +0000
commit783fb88f476c94d5d4f4b954f7053464d9a6dff5 (patch)
treee9ab9fc410eab41b06aa268cf191c8ab271597d4
parent706084cedc73612af4feb5dd9075f1efb1b7d58c (diff)
downloadopenembedded-core-783fb88f476c94d5d4f4b954f7053464d9a6dff5.tar.gz
openembedded-core-783fb88f476c94d5d4f4b954f7053464d9a6dff5.tar.bz2
openembedded-core-783fb88f476c94d5d4f4b954f7053464d9a6dff5.zip
cmake: default to out-of-tree builds
Set B=${WORKDIR}/build in cmake.bbclass so that recipes using cmake.bbclass do out-of-tree builds by default. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
-rw-r--r--meta/classes/cmake.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 1dc406d253..3ac3fcc53d 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -1,4 +1,5 @@
DEPENDS_prepend = "cmake-native "
+B = "${WORKDIR}/build"
# We need to unset CCACHE otherwise cmake gets too confused
CCACHE = ""