Skip to content

CMP0026: Fix OLD behavior with file written during configure step

Brad King requested to merge brad.king/cmake:fix-CMP0026-old into master

Refactoring in !677 (merged) accidentally regressed support for CMP0026's OLD behavior in the case of a source file written by project code during the configure step after getting a LOCATION. We should not perform full source classification until the generate step because files written by the project's configure step may not exist yet.

Add special logic to support this case. Add a test case for it.

Merge request reports