From b8a1b1e9e7adcc69d26d6fefaf6da059580afdba Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Thu, 21 Nov 2002 12:26:54 -0500 Subject: Fix for network paths with space --- Source/cmLocalVisualStudio6Generator.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 3c4a640..eed8c78 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -164,10 +164,10 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmSourceGroup& sourceGroup) std::string makefileIn = m_Makefile->GetStartDirectory(); makefileIn += "/"; makefileIn += "CMakeLists.txt"; + std::string makefileInNC = makefileIn; makefileIn = cmSystemTools::ConvertToOutputPath(makefileIn.c_str()); std::string dsprule = "${CMAKE_COMMAND}"; m_Makefile->ExpandVariablesInString(dsprule); - dsprule = cmSystemTools::ConvertToOutputPath(dsprule.c_str()); std::string args = makefileIn; args += " -H"; args += @@ -203,7 +203,7 @@ void cmLocalVisualStudio6Generator::AddDSPBuildRule(cmSourceGroup& sourceGroup) std::vector outputs; outputs.push_back(dspname); - cmCustomCommand cc(makefileIn.c_str(), dsprule.c_str(), + cmCustomCommand cc(makefileInNC.c_str(), dsprule.c_str(), args.c_str(), listFiles, outputs); @@ -555,7 +555,7 @@ cmLocalVisualStudio6Generator::CreateTargetRules(const cmTarget &target, { customRuleCode += "\t"; } - customRuleCode += cmSystemTools::ConvertToOutputPath(cc.GetCommand().c_str()) + " " + cc.GetArguments(); + customRuleCode += cc.GetCommand() + " " + cc.GetArguments(); } } -- cgit v0.12