Revise the test itself to work in all configurations and verify that certain sources are only built by whatever configuration is tested.
Extend the cmGeneratorExpressionDAGChecker with an interface returning the name of the top target. Use that to determine when there is a DAG violation, as required by the RunCMake.Languages tests.