diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-10 16:26:39 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-07-10 16:26:39 (GMT) |
commit | a4dff91c35d670b173a9b276596f60b85373a2af (patch) | |
tree | 5d3aad2b0352f01286261b7dc9786d9b33311184 | |
parent | d4d467dbd5c4a1590333eeeb3082ad46dc9698df (diff) | |
download | CMake-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.cxx | 9 |
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) { |