Bash "-x" option reports every iteration of the loop. While we can unset
it temporarily, we can get rid of the loop altogether and user find's
built-in capabilities. It will also be more robust w.r.t. "bad"
filenames.
Follow-up of MR !2008.
grep "cannot be built" buildLogFile.log testBuildLogFile.log | tee -a buildErrors.log || true
$CMAKE --build . --target install 2>&1 | tee installBuildLogFile.log
if [ -s buildErrors.log ] ; then echo "Found compiler warning during build"; cat buildErrors.log; exit 1; fi
-for file in `find . -mindepth 1 -name "*.o" ! -type l` ; do echo $file ; rm $file ; done 2>&1 > remove-build-objects.log
+find . -mindepth 1 -name '*.o' ! -type l -printf '%p\n' -delete 2>&1 > remove-build-objects.log
cd ..