[OE-core] cmake: respect ${S} and ${B} patch problem
Burton, Ross
ross.burton at intel.com
Fri Jun 13 16:38:09 UTC 2014
On 13 June 2014 17:33, Miroslav Keš <miroslav.kes at gmail.com> wrote:
> + if [ -z "${OECMAKE_SOURCEPATH}" ]; then
> + OECMAKE_SOURCEPATH="${S}"
> fi
>
> if [ "${S}" != "${B}" ]; then
> @@ -84,7 +88,7 @@ cmake_do_configure() {
>
> cmake \
> ${OECMAKE_SITEFILE} \
> - ${S} \
> + ${OECMAKE_SOURCEPATH} \
A better idiom that's more self-documenting would be to set
OECMAKE_SOURCEPATH ?= "${S}" at the top-level.
Would it be sensible to give that variable a different name as it
refers specifically to the location of the cmake file, and not the
rest of the source?
Ross
More information about the Openembedded-core
mailing list