diff options
author | Brad King <brad.king@kitware.com> | 2005-02-24 23:35:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-02-24 23:35:36 (GMT) |
commit | 397dc1cef5cb778bd013cdb9b4139b3c7ab1f096 (patch) | |
tree | 72c94c962ec97a9c656355749b31e680dd308893 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | d680e51777b26789f57f9e18c74f4df269310250 (diff) | |
download | CMake-397dc1cef5cb778bd013cdb9b4139b3c7ab1f096.zip CMake-397dc1cef5cb778bd013cdb9b4139b3c7ab1f096.tar.gz CMake-397dc1cef5cb778bd013cdb9b4139b3c7ab1f096.tar.bz2 |
ENH: Converted some ConvertToRelativeOutputPath calls to ConvertToOptionallyRelativeOutputPath in preparation for making ConvertToRelativeOutputPath always convert. Some of these might be able to be switched back but we will first have to test what paths can be relative in the generate VS project files.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 8ebf4da..a0d1cec 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -135,15 +135,10 @@ void cmLocalVisualStudio7Generator::AddVCProjBuildRule() { std::string dspname = *(m_CreatedProjectNames.end()-1); dspname += ".vcproj.cmake"; - std::string makefileIn = m_Makefile->GetStartDirectory(); - makefileIn += "/"; - makefileIn += "CMakeLists.txt"; - makefileIn = this->ConvertToRelativeOutputPath(makefileIn.c_str()); const char* dsprule = m_Makefile->GetRequiredDefinition("CMAKE_COMMAND"); cmCustomCommandLine commandLine; commandLine.push_back(dsprule); - commandLine.push_back(makefileIn); - makefileIn = m_Makefile->GetStartDirectory(); + std::string makefileIn = m_Makefile->GetStartDirectory(); makefileIn += "/"; makefileIn += "CMakeLists.txt"; std::string args; @@ -1317,7 +1312,7 @@ std::string cmLocalVisualStudio7Generator::EscapeForXML(const char* s) std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPath(const char* path) { - std::string ret = this->ConvertToRelativeOutputPath(path); + std::string ret = this->ConvertToOptionallyRelativeOutputPath(path); cmSystemTools::ReplaceString(ret, "&", "&"); cmSystemTools::ReplaceString(ret, "\"", """); cmSystemTools::ReplaceString(ret, "<", "<"); @@ -1327,7 +1322,7 @@ std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPath(const char* pa std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPathSingle(const char* path) { - std::string ret = this->ConvertToRelativeOutputPath(path); + std::string ret = this->ConvertToOptionallyRelativeOutputPath(path); cmSystemTools::ReplaceString(ret, "\"", ""); cmSystemTools::ReplaceString(ret, "&", "&"); cmSystemTools::ReplaceString(ret, "<", "<"); |