Patchwork [3/3] cmake: default to out-of-tree builds

login
register
mail settings
Submitter Ross Burton
Date Jan. 10, 2014, 5:54 p.m.
Message ID <1389376488-22286-4-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/64559/
State New
Headers show

Comments

Ross Burton - Jan. 10, 2014, 5:54 p.m.
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>
---
 meta/classes/cmake.bbclass |    1 +
 1 file changed, 1 insertion(+)
Stefan Herbrechtsmeier - Jan. 16, 2014, 10:26 a.m.
Am 10.01.2014 18:54, schrieb Ross Burton:
> Set B=${WORKDIR}/build in cmake.bbclass so that recipes using cmake.bbclass do
> out-of-tree builds by default.
You should update the note to reflect the new behaviour.
Ross Burton - Jan. 21, 2014, 11:39 a.m.
Good point, thanks.  Patch sent.

Ross

On 16 January 2014 10:26, Stefan Herbrechtsmeier
<stefan@herbrechtsmeier.net> wrote:
> Am 10.01.2014 18:54, schrieb Ross Burton:
>
>> Set B=${WORKDIR}/build in cmake.bbclass so that recipes using
>> cmake.bbclass do
>> out-of-tree builds by default.
>
> You should update the note to reflect the new behaviour.
>

Patch

diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 1dc406d2..3ac3fcc 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 = ""