Browse Source

VS: removed usage of relative paths for C# targets in in-source builds

Michael Stürmer 9 years ago
parent
commit
4bfb1249ed
1 changed files with 0 additions and 6 deletions
  1. 0 6
      Source/cmVisualStudio10TargetGenerator.cxx

+ 0 - 6
Source/cmVisualStudio10TargetGenerator.cxx

@@ -1671,12 +1671,6 @@ void cmVisualStudio10TargetGenerator::WriteSource(std::string const& tool,
       this->GlobalGenerator->PathTooLong(this->GeneratorTarget, sf, sourceRel);
     }
   }
-  if (csproj == this->ProjectType && this->InSourceBuild) {
-    std::string srcdir = this->Makefile->GetCurrentSourceDirectory();
-    if (sourceFile.find(srcdir) != std::string::npos) {
-      sourceFile = sourceFile.substr(srcdir.size() + 1);
-    }
-  }
   this->ConvertToWindowsSlash(sourceFile);
   this->WriteString("<", 2);
   (*this->BuildFileStream) << tool << " Include=\""