diff options
author | John Farrier <john.farrier@digitalinblue.com> | 2013-05-30 00:16:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-05-31 13:15:30 (GMT) |
commit | cca955a27cf3fc8344ee3dce213472b61e1edef7 (patch) | |
tree | 538ebba5c8aa38095409b4d86bd98f18c0de05c9 /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 79ec7868d0f08c9ff2e6fa6454b205132acecc24 (diff) | |
download | CMake-cca955a27cf3fc8344ee3dce213472b61e1edef7.zip CMake-cca955a27cf3fc8344ee3dce213472b61e1edef7.tar.gz CMake-cca955a27cf3fc8344ee3dce213472b61e1edef7.tar.bz2 |
VS: Add VS_GLOBAL_ROOTNAMESPACE target property
Add a setting for Visual Studio projects for the root namespace in the
"Globals" PropertyGroup section of the project file.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 933bf95..61a3427 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"); |