summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-03 13:57:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-03 13:57:32 (GMT)
commit90441b289da6e7bd9f50a970d7adefc7b6be749f (patch)
tree9bc76c283b8a3c5dc09257ee5952b615181a75a1 /Source/cmVisualStudio10TargetGenerator.cxx
parentdb5f5243b5079ebfeb06dea9c82e1cd1537a325b (diff)
parentcca955a27cf3fc8344ee3dce213472b61e1edef7 (diff)
downloadCMake-90441b289da6e7bd9f50a970d7adefc7b6be749f.zip
CMake-90441b289da6e7bd9f50a970d7adefc7b6be749f.tar.gz
CMake-90441b289da6e7bd9f50a970d7adefc7b6be749f.tar.bz2
Merge topic 'vs-RootNamespace'
cca955a VS: Add VS_GLOBAL_ROOTNAMESPACE target property
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 88c4deb..d0ab976 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -262,6 +262,15 @@ void cmVisualStudio10TargetGenerator::Generate()
"</Keyword>\n";
}
+ const char* vsGlobalRootNamespace =
+ this->Target->GetProperty("VS_GLOBAL_ROOTNAMESPACE");
+ if(vsGlobalRootNamespace)
+ {
+ this->WriteString("<RootNamespace>", 2);
+ (*this->BuildFileStream) << cmVS10EscapeXML(vsGlobalRootNamespace) <<
+ "</RootNamespace>\n";
+ }
+
this->WriteString("<Platform>", 2);
(*this->BuildFileStream) << this->Platform << "</Platform>\n";
const char* projLabel = this->Target->GetProperty("PROJECT_LABEL");