[oe-commits] Richard Purdie : cmake: Try and improve cleaning of builds when B==S

git at git.openembedded.org git at git.openembedded.org
Fri Oct 24 16:42:18 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: af6fd157ee60a3a46fca5d8204c2c0f77acdb846
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=af6fd157ee60a3a46fca5d8204c2c0f77acdb846

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Fri Oct 24 15:20:28 2014 +0100

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 at linuxfoundation.org>

---

 meta/classes/cmake.bbclass | 2 ++
 1 file changed, 2 insertions(+)

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



More information about the Openembedded-commits mailing list