diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-24 15:20:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-30 13:03:55 +0000 |
commit | 01f4ed0cfbc60859aabfa5bff33ed966117a05d7 (patch) | |
tree | 00980fe638fd0462985a1e9cb45d1abd3f4e4c8d /meta | |
parent | d06f2c089e01b7c67699800a7a54a4225233da93 (diff) | |
download | openembedded-core-contrib-01f4ed0cfbc60859aabfa5bff33ed966117a05d7.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/cmake.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 995ddf1ea2f..10f8f98b2e7 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 |