summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-05-11 14:19:58 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-05-11 14:19:58 (GMT)
commit25f75d90756fcd991554c3d5d0bb747ea4158dfd (patch)
treeceaf0e283ad2a64ef5279a0044904b0bb10c3d4a /Source/cmGlobalGenerator.h
parent4b1c392c9c441437a00d0be3c2da0fd0b103777f (diff)
downloadCMake-25f75d90756fcd991554c3d5d0bb747ea4158dfd.zip
CMake-25f75d90756fcd991554c3d5d0bb747ea4158dfd.tar.gz
CMake-25f75d90756fcd991554c3d5d0bb747ea4158dfd.tar.bz2
ENH: added new methods to convert to HomeRelative paths
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index c72ab67..8a95263 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -138,6 +138,20 @@ public:
std::string ConvertToRelativePath(const std::vector<std::string>& local,
const char* remote);
+ /**
+ * Convert the given remote path to a relative path with respect to
+ * this generator's output directory. The remote path must use
+ * forward slashes and not already be escaped or quoted.
+ */
+ std::string ConvertToHomeRelativePath(const char* remote);
+
+ /**
+ * Convert to an output path that is relative to the output
+ * directory. The remote path must use forward slashes and not
+ * already be escaped or quoted.
+ */
+ std::string ConvertToHomeRelativeOutputPath(const char* remote);
+
/*
* Determine what program to use for building the project.
*/
@@ -151,6 +165,8 @@ protected:
void ConfigureRelativePaths();
void SetupTests();
+ std::vector<std::string> m_HomeOutputDirectoryComponents;
+
bool m_ForceUnixPaths;
cmStdString m_FindMakeProgramFile;
cmStdString m_ConfiguredFilesPath;