CMP0147 wrecks compilation when files with the same name exist in a project
A project with same source file names (in different directories) fails to build. Linker protests against missing files.
With cmake_policy(SET CMP0147 OLD)
the project compiles fine (as in cmake < 3.27)
Remark: having parallel compiles when multiple file have the same short name is a problem with VS and needs some vsprops to be applied (see here text ). However make or ninja have no problem with it whatsoever.
Edited by Brad King