mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user