diff options
author | Steven Velez <sbv1976@gmail.com> | 2011-06-14 13:45:52 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-07-29 18:06:28 (GMT) |
commit | 05ddfbfe95c4536521084975be6e9cadf0ee05f9 (patch) | |
tree | 5b5a2301c035b11b3acff9bd6c9405919ff03d1e /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 5ef20b2dc54474ceba1c81a75e8c3fc558d505fa (diff) | |
download | CMake-05ddfbfe95c4536521084975be6e9cadf0ee05f9.zip CMake-05ddfbfe95c4536521084975be6e9cadf0ee05f9.tar.gz CMake-05ddfbfe95c4536521084975be6e9cadf0ee05f9.tar.bz2 |
VS10: Add SCC support
Honor the properties that were added for earlier versions
of visual studio.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-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"; |