]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake.bbclass: use weakest ??= assignment for default OECMAKE_SOURCEPATH
authorAndre McCurdy <armccurdy@gmail.com>
Thu, 27 Apr 2017 23:50:29 +0000 (16:50 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Apr 2017 10:26:06 +0000 (11:26 +0100)
Make it slightly easier to support situations where the default path
needs to be over-ridden more than once.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass

index 20d8a61069f45f4bf377f8292a6fcd4bc70fcd22..12df617ad83645164561778b96fe31e0b6c30c02 100644 (file)
@@ -1,5 +1,5 @@
 # Path to the CMake file to process.
-OECMAKE_SOURCEPATH ?= "${S}"
+OECMAKE_SOURCEPATH ??= "${S}"
 
 DEPENDS_prepend = "cmake-native "
 B = "${WORKDIR}/build"