]> code.ossystems Code Review - openembedded-core.git/commit
cmake: respect ${S} and ${B}
authorRoss Burton <ross.burton@intel.com>
Tue, 3 Dec 2013 15:42:58 +0000 (15:42 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jan 2014 11:33:18 +0000 (11:33 +0000)
commit43073569cb67d98c11aa71211d77b566b64f9145
treefb260f717f298794a52263920f6248a5da639e67
parentcd29ff3927a6deae5e808525bd56acf7b4b0b60c
cmake: respect ${S} and ${B}

Instead of the class-specific variables OECMAKE_BUILDPATH and
OECMAKE_SOURCEPATH, just use ${B} and ${S}.

If these two paths are different, delete any existing ${B} before running a
build so that previous builds don't taint the current build.

Note that OECMAKE_SOURCEPATH and OECMAKE_BUILDPATH are not respected, so recipes
that manually set these in the past will need to be updated to either use
something along the lines of separatebuilddir.inc or set B themselves.  If the
old variables are set, a warning is displayed.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/cmake.bbclass