cxxmodules: Scan only targets that explicitly enable C++ 20

Previously we scanned any targets for which C++ 20 is enabled,
even if enabled only by the compiler's default, such as when
`CXXFLAGS=-std=c++20`.
4 files changed