From c1f4b1f76627c76f23c2037a1e9dad10a31ec258 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 24 Oct 2014 15:20:28 +0100 Subject: 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 --- meta/classes/cmake.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/cmake.bbclass') diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 995ddf1ea2..10f8f98b2e 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 -- cgit v1.2.3-54-g00ecf