diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-21 17:26:54 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-21 17:26:54 (GMT) |
commit | b8a1b1e9e7adcc69d26d6fefaf6da059580afdba (patch) | |
tree | 26bc0c2ff2e4f98cb4bffe29070ce7dd1ac8e179 | |
parent | 146a3de46d9cbbdb764ccf70d5b1b060fa00c7b4 (diff) | |
download | CMake-b8a1b1e9e7adcc69d26d6fefaf6da059580afdba.zip CMake-b8a1b1e9e7adcc69d26d6fefaf6da059580afdba.tar.gz CMake-b8a1b1e9e7adcc69d26d6fefaf6da059580afdba.tar.bz2 |
Fix for network paths with space
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files 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<std::string> 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(); } } |