diff options
author | Brad King <brad.king@kitware.com> | 2005-02-24 21:04:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-24 21:04:54 (GMT) |
commit | cb48e0c16178738c3d3bafd551f0f3e0b906c6c1 (patch) | |
tree | e6a6b05c3bf993e74eca255d6a00c70175956f1d /Source/cmLocalUnixMakefileGenerator2.h | |
parent | 9bf0811e34e7d26eb4aaf7bb250b1fd8be5cbb87 (diff) | |
download | CMake-cb48e0c16178738c3d3bafd551f0f3e0b906c6c1.zip CMake-cb48e0c16178738c3d3bafd551f0f3e0b906c6c1.tar.gz CMake-cb48e0c16178738c3d3bafd551f0f3e0b906c6c1.tar.bz2 |
ENH: Merged implementations of ConvertToRelative*Path methods. The main ConvertToRelativePath method is now in cmGlobalGenerator. It converts paths only if they are at least inside the deepest common directory between the top-level source and build trees. Each cmLocalGenerator instance calls this global method with its own output directory as the "local" argument from which paths are relative. Added separate ConvertToOptionallyRelative path that pays attention to the CMAKE_USE_RELATIVE_PATHS option.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.h')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.h b/Source/cmLocalUnixMakefileGenerator2.h index efa03cd..90997f1 100644 --- a/Source/cmLocalUnixMakefileGenerator2.h +++ b/Source/cmLocalUnixMakefileGenerator2.h @@ -198,11 +198,9 @@ protected: const cmSourceFile& source); const char* GetSourceFileLanguage(const cmSourceFile& source); std::string ConvertToFullPath(const std::string& localPath); - std::string ConvertToRelativePath(const char* p); std::string ConvertToRelativeOutputPath(const char* p); void ConfigureOutputPaths(); void FormatOutputPath(std::string& path, const char* name); - bool ComparePath(const char* c1, const char* c2); void AppendTargetDepends(std::vector<std::string>& depends, const cmTarget& target); @@ -277,13 +275,6 @@ private: // Set of object file names that will be built in this directory. std::set<cmStdString> m_ObjectFiles; - - // The prefix required of a path to be converted to a relative path. - // No sequence of ../.. will ever go past this path. - std::string m_RelativePathTop; - - // The pre-split current output directory. - std::vector<std::string> m_CurrentOutputDirectoryComponents; }; #endif |