]> code.ossystems Code Review - openembedded-core.git/commitdiff
cmake: Try and improve cleaning of builds when B==S
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 24 Oct 2014 14:20:28 +0000 (15:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Oct 2014 13:03:55 +0000 (13:03 +0000)
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>
meta/classes/cmake.bbclass

index 995ddf1ea2fc71eca38146f15f711de33ca2cd3f..10f8f98b2e71dc292086f38f20630d0e1d194d9d 100644 (file)
@@ -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