mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Ninja: Fix Fortran include dependency on generated file
Work around upstream ninja issue 1251 by converting include directories used by our Fortran dependency scanner to the same path format that we use in preprocessor `-I` flags and in the `build.ninja` manifest. Fixes: #16722
This commit is contained in:
@@ -978,7 +978,9 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang)
|
||||
lang, this->GetConfigName());
|
||||
for (std::vector<std::string>::iterator i = includes.begin();
|
||||
i != includes.end(); ++i) {
|
||||
tdi_include_dirs.append(*i);
|
||||
// Convert the include directories the same way we do for -I flags.
|
||||
// See upstream ninja issue 1251.
|
||||
tdi_include_dirs.append(this->ConvertToNinjaPath(*i));
|
||||
}
|
||||
|
||||
Json::Value& tdi_linked_target_dirs = tdi["linked-target-dirs"] =
|
||||
|
||||
Reference in New Issue
Block a user