cppcheck: Build the cfg files (close #2572)