mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 19:19:32 -05:00
6199637e95
Represent the input file path internally in canonical form. Otherwise multiple `configure_file` calls that share the same input file but specify it relative to different directories (e.g. via `../`) result in multiple copies of the dependency on the rule to re-run CMake. This causes the Ninja generator to emit duplicate phony build statements for these dependencies, which generates an error with `-w dupbuild=err`, which will be default in Ninja 1.9. Also canonicalize the output path for consistency. Add a test case. Fixes: #18584
9 lines
240 B
Plaintext
9 lines
240 B
Plaintext
CMake Error at DirInput.cmake:[0-9]+ \(configure_file\):
|
|
configure_file input location
|
|
|
|
.*/Tests/RunCMake/configure_file
|
|
|
|
is a directory but a file was expected.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|