summaryrefslogtreecommitdiffstats
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-24 15:20:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-30 13:11:51 +0000
commitc1f4b1f76627c76f23c2037a1e9dad10a31ec258 (patch)
tree201a21e9be3b48d73e26b23af3d0adde115a0caf /meta/classes/cmake.bbclass
parent6bd2d9d395fe7c97a0a9645ca9379b366bb64afa (diff)
downloadast2050-yocto-poky-c1f4b1f76627c76f23c2037a1e9dad10a31ec258.zip
ast2050-yocto-poky-c1f4b1f76627c76f23c2037a1e9dad10a31ec258.tar.gz
cmake: Try and improve cleaning of builds when B==S
Currently if B==S for a cmake recipe, the build will not reconfigure. This patch adds code to remove the generated cmake files, meaning cmake will then be forced to regenerate them. This forces cmake to see configuration changes it may not otherwise see. (From OE-Core rev: 01f4ed0cfbc60859aabfa5bff33ed966117a05d7) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cmake.bbclass')
-rw-r--r--meta/classes/cmake.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass
index 995ddf1..10f8f98 100644
--- a/meta/classes/cmake.bbclass
+++ b/meta/classes/cmake.bbclass
@@ -79,6 +79,8 @@ cmake_do_configure() {
rm -rf ${B}
mkdir -p ${B}
cd ${B}
+ else
+ find ${B} -name CMakeFiles -or -name Makefile -or -name cmake_install.cmake -or -name CMakeCache.txt -delete
fi
# Just like autotools cmake can use a site file to cache result that need generated binaries to run
OpenPOWER on IntegriCloud