summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-09-09 20:21:57 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-09-09 20:44:30 (GMT)
commite79e412e70cb439354df589d83d3878c4dbe62fc (patch)
tree21429b189d8130d8e8e8c47b54a6e60ff467cbfa /Source/cmVisualStudio10TargetGenerator.cxx
parent530ade6677ec2c12fe8f3db5f5d71ad0ffaa9e68 (diff)
downloadCMake-e79e412e70cb439354df589d83d3878c4dbe62fc.zip
CMake-e79e412e70cb439354df589d83d3878c4dbe62fc.tar.gz
CMake-e79e412e70cb439354df589d83d3878c4dbe62fc.tar.bz2
VS2010: Honor PROJECT_LABEL target property (#10611)
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 477945b..b374579 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -155,6 +155,13 @@ void cmVisualStudio10TargetGenerator::Generate()
this->WriteString("<Keyword>Win32Proj</Keyword>\n", 2);
this->WriteString("<Platform>", 2);
(*this->BuildFileStream) << this->Platform << "</Platform>\n";
+ const char* projLabel = this->Target->GetProperty("PROJECT_LABEL");
+ if(!projLabel)
+ {
+ projLabel = this->Name.c_str();
+ }
+ this->WriteString("<ProjectName>", 2);
+ (*this->BuildFileStream) << projLabel << "</ProjectName>\n";
this->WriteString("</PropertyGroup>\n", 1);
this->WriteString("<Import Project="
"\"$(VCTargetsPath)\\Microsoft.Cpp.Default.props\" />\n",