summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2003-12-22 21:21:27 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2003-12-22 21:21:27 (GMT)
commit0bdb092a019c87825a88208d4fdaef77379e3004 (patch)
treeb04edec139322b0b81bd3d83c43114edf27bdef1 /Source/cmLocalVisualStudio7Generator.cxx
parentd79e3ae698413b0204c4819db1fbe25486c96fbf (diff)
downloadCMake-0bdb092a019c87825a88208d4fdaef77379e3004.zip
CMake-0bdb092a019c87825a88208d4fdaef77379e3004.tar.gz
CMake-0bdb092a019c87825a88208d4fdaef77379e3004.tar.bz2
ENH: add relative paths to visual studio 6 and 7 project files
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index eab8281..4b05d40 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -141,10 +141,10 @@ void cmLocalVisualStudio7Generator::AddVCProjBuildRule()
std::string makefileIn = m_Makefile->GetStartDirectory();
makefileIn += "/";
makefileIn += "CMakeLists.txt";
- makefileIn = cmSystemTools::ConvertToOutputPath(makefileIn.c_str());
+ makefileIn = this->ConvertToRelativeOutputPath(makefileIn.c_str());
std::string dsprule = "${CMAKE_COMMAND}";
m_Makefile->ExpandVariablesInString(dsprule);
- dsprule = cmSystemTools::ConvertToOutputPath(dsprule.c_str());
+ dsprule = this->ConvertToRelativeOutputPath(dsprule.c_str());
std::vector<std::string> argv;
argv.push_back(makefileIn);
makefileIn = m_Makefile->GetStartDirectory();
@@ -153,19 +153,19 @@ void cmLocalVisualStudio7Generator::AddVCProjBuildRule()
std::string args;
args = "-H";
args +=
- cmSystemTools::ConvertToOutputPath(m_Makefile->GetHomeDirectory());
+ this->ConvertToRelativeOutputPath(m_Makefile->GetHomeDirectory());
argv.push_back(args);
args = "-S";
args +=
- cmSystemTools::ConvertToOutputPath(m_Makefile->GetStartDirectory());
+ this->ConvertToRelativeOutputPath(m_Makefile->GetStartDirectory());
argv.push_back(args);
args = "-O";
args +=
- cmSystemTools::ConvertToOutputPath(m_Makefile->GetStartOutputDirectory());
+ this->ConvertToRelativeOutputPath(m_Makefile->GetStartOutputDirectory());
argv.push_back(args);
args = "-B";
args +=
- cmSystemTools::ConvertToOutputPath(m_Makefile->GetHomeOutputDirectory());
+ this->ConvertToRelativeOutputPath(m_Makefile->GetHomeOutputDirectory());
argv.push_back(args);
std::string configFile =
@@ -856,7 +856,7 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(std::ostream& fout,
{
std::string totalCommandStr;
totalCommandStr =
- cmSystemTools::ConvertToOutputPath(command->GetCommand().c_str());
+ this->ConvertToRelativeOutputPath(command->GetCommand().c_str());
totalCommandStr += " ";
totalCommandStr += command->GetArguments();
totalCommandStr += "\n";
@@ -1149,7 +1149,7 @@ std::string cmLocalVisualStudio7Generator::EscapeForXML(const char* s)
std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPath(const char* path)
{
- std::string ret = cmSystemTools::ConvertToOutputPath(path);
+ std::string ret = this->ConvertToRelativeOutputPath(path);
cmSystemTools::ReplaceString(ret, "&", "&amp;");
cmSystemTools::ReplaceString(ret, "\"", "&quot;");
cmSystemTools::ReplaceString(ret, "<", "&lt;");
@@ -1159,7 +1159,7 @@ std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPath(const char* pa
std::string cmLocalVisualStudio7Generator::ConvertToXMLOutputPathSingle(const char* path)
{
- std::string ret = cmSystemTools::ConvertToOutputPath(path);
+ std::string ret = this->ConvertToRelativeOutputPath(path);
cmSystemTools::ReplaceString(ret, "\"", "");
cmSystemTools::ReplaceString(ret, "&", "&amp;");
cmSystemTools::ReplaceString(ret, "<", "&lt;");