mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
Fortran: Inline conversion to relative path
Don't use cmOutputConverter method which relies on directory-specific state.
This commit is contained in:
@@ -707,5 +707,9 @@ bool cmDependsFortran::ModulesDiffer(const char* modFile,
|
||||
std::string cmDependsFortran::MaybeConvertToRelativePath(
|
||||
std::string const& base, std::string const& path)
|
||||
{
|
||||
return this->LocalGenerator->ConvertToRelativePath(base, path);
|
||||
if (!cmOutputConverter::ContainedInDirectory(
|
||||
base, path, this->LocalGenerator->GetStateSnapshot().GetDirectory())) {
|
||||
return path;
|
||||
}
|
||||
return cmOutputConverter::ForceToRelativePath(base, path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user