This could be fixed by passing -Wno-error to cmake, patching the subdirectory with the closing commit on the issue linked above, or updating the google-test version.
Manually updating cmake/googletest-download.cmake to add release-1.11.0 fixes this issue for me.
In attempting Task 2/14, compilation fails when checking the answer as google-test fails to build due to
-Werror=maybe-uninitialized
:This is due to google-test < 1.11.0 failing to cleanly build with GCC >= 11. See https://github.com/google/googletest/issues/3219
This could be fixed by passing
-Wno-error
to cmake, patching the subdirectory with the closing commit on the issue linked above, or updating the google-test version.Manually updating
cmake/googletest-download.cmake
to addrelease-1.11.0
fixes this issue for me.