summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-07-10 16:26:39 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-07-10 16:26:39 (GMT)
commita4dff91c35d670b173a9b276596f60b85373a2af (patch)
tree5d3aad2b0352f01286261b7dc9786d9b33311184
parentd4d467dbd5c4a1590333eeeb3082ad46dc9698df (diff)
downloadCMake-a4dff91c35d670b173a9b276596f60b85373a2af.zip
CMake-a4dff91c35d670b173a9b276596f60b85373a2af.tar.gz
CMake-a4dff91c35d670b173a9b276596f60b85373a2af.tar.bz2
ENH: change so rules show up in GUI, must be windows path
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 05196ff..5da4e94 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -270,9 +270,12 @@ cmVisualStudio10TargetGenerator::WriteCustomRule(cmSourceFile* source,
static_cast<cmGlobalVisualStudio7Generator *>
(this->GlobalGenerator)->GetConfigurations();
this->WriteString("<CustomBuild Include=\"", 2);
- (*this->BuildFileStream ) <<
- cmSystemTools::RelativePath(this->Makefile->GetCurrentOutputDirectory(),
- sourcePath.c_str()) << "\">\n";
+ std::string path =
+ cmSystemTools::RelativePath(
+ this->Makefile->GetCurrentOutputDirectory(),
+ sourcePath.c_str());
+ this->ConvertToWindowsSlash(path);
+ (*this->BuildFileStream ) << path << "\">\n";
for(std::vector<std::string>::iterator i = configs->begin();
i != configs->end(); ++i)
{