summaryrefslogtreecommitdiffstats
path: root/Source/cmOutputConverter.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-04 20:56:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-06 18:02:06 (GMT)
commitc3264f48c2960325b9141d3ec58c6b49afe120c9 (patch)
treed5c7cca2ea2d5c6e40c029eaf70723b846ef7941 /Source/cmOutputConverter.h
parent52168f3210ca07a8d80991958d588789c2693d63 (diff)
downloadCMake-c3264f48c2960325b9141d3ec58c6b49afe120c9.zip
CMake-c3264f48c2960325b9141d3ec58c6b49afe120c9.tar.gz
CMake-c3264f48c2960325b9141d3ec58c6b49afe120c9.tar.bz2
Convert: Extract method to determine if paths are in directory
The conditional early return can be moved to clients, which would have many benefits, notably making cmOutputConverter independent of directory-specific state.
Diffstat (limited to 'Source/cmOutputConverter.h')
-rw-r--r--Source/cmOutputConverter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmOutputConverter.h b/Source/cmOutputConverter.h
index fd887ae..745686b 100644
--- a/Source/cmOutputConverter.h
+++ b/Source/cmOutputConverter.h
@@ -99,6 +99,10 @@ public:
};
static FortranFormat GetFortranFormat(const char* value);
+ static bool ContainedInDirectory(std::string const& local_path,
+ std::string const& remote_path,
+ cmState::Directory directory);
+
/**
* Convert the given remote path to a relative path with respect to
* the given local path. Both paths must use forward slashes and not