summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsFortran.cxx
diff options
context:
space:
mode:
authorBruno Manganelli <bruno.manga95@gmail.com>2018-11-23 02:16:51 (GMT)
committerBruno Manganelli <bruno.manga95@gmail.com>2018-12-08 11:24:06 (GMT)
commit33f08eec18b440eac1f24f6f18b971c6203307bd (patch)
treeefb4e1304611ce92cd8b6312f4dffa1cad6d2045 /Source/cmDependsFortran.cxx
parent87e810f223bad6fb889e7ae4ad08be98461bf6e2 (diff)
downloadCMake-33f08eec18b440eac1f24f6f18b971c6203307bd.zip
CMake-33f08eec18b440eac1f24f6f18b971c6203307bd.tar.gz
CMake-33f08eec18b440eac1f24f6f18b971c6203307bd.tar.bz2
cmOutputConverter: Moved ContainedInDirectory to cmStateDirectory
Diffstat (limited to 'Source/cmDependsFortran.cxx')
-rw-r--r--Source/cmDependsFortran.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmDependsFortran.cxx b/Source/cmDependsFortran.cxx
index d218b60..310af2d 100644
--- a/Source/cmDependsFortran.cxx
+++ b/Source/cmDependsFortran.cxx
@@ -697,8 +697,8 @@ bool cmDependsFortran::ModulesDiffer(const char* modFile,
std::string cmDependsFortran::MaybeConvertToRelativePath(
std::string const& base, std::string const& path)
{
- if (!cmOutputConverter::ContainedInDirectory(
- base, path, this->LocalGenerator->GetStateSnapshot().GetDirectory())) {
+ if (!this->LocalGenerator->GetStateSnapshot().GetDirectory().ContainsBoth(
+ base, path)) {
return path;
}
return cmSystemTools::ForceToRelativePath(base, path);