diff options
author | David Cole <david.cole@kitware.com> | 2011-08-02 19:10:31 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-08-02 19:10:31 (GMT) |
commit | abc85867169a92f189d6378e95d062f24aa1bd93 (patch) | |
tree | 43f528d493238538f1db65a6f99f410d35763f0d | |
parent | b01167161c379dcd0dfdb56346fd3caf61ff0189 (diff) | |
parent | 05ddfbfe95c4536521084975be6e9cadf0ee05f9 (diff) | |
download | CMake-abc85867169a92f189d6378e95d062f24aa1bd93.zip CMake-abc85867169a92f189d6378e95d062f24aa1bd93.tar.gz CMake-abc85867169a92f189d6378e95d062f24aa1bd93.tar.bz2 |
Merge topic 'fix-12299-add-vs10-scc-support'
05ddfbf VS10: Add SCC support
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index d710405..ac4296c 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -178,8 +178,23 @@ void cmVisualStudio10TargetGenerator::Generate() this->WriteString("<ProjectGUID>", 2); (*this->BuildFileStream) << "{" << this->GUID << "}</ProjectGUID>\n"; - this->WriteString("<SccProjectName />\n", 2); - this->WriteString("<SccLocalPath />\n", 2); + const char* vsProjectName = this->Target->GetProperty("VS_SCC_PROJECTNAME"); + const char* vsLocalPath = this->Target->GetProperty("VS_SCC_LOCALPATH"); + const char* vsProvider = this->Target->GetProperty("VS_SCC_PROVIDER"); + + if ( vsProjectName && vsLocalPath && vsProvider) + { + this->WriteString("<SccProjectName>", 2); + (*this->BuildFileStream) << cmVS10EscapeXML(vsProjectName) << + "</SccProjectName>\n"; + this->WriteString("<SccLocalPath>", 2); + (*this->BuildFileStream) << cmVS10EscapeXML(vsLocalPath) << + "</SccLocalPath>\n"; + this->WriteString("<SccProvider>", 2); + (*this->BuildFileStream) << cmVS10EscapeXML(vsProvider) << + "</SccProvider>\n"; + } + this->WriteString("<Keyword>Win32Proj</Keyword>\n", 2); this->WriteString("<Platform>", 2); (*this->BuildFileStream) << this->Platform << "</Platform>\n"; |