diff options
author | Petr Kmoch <petr.kmoch@gmail.com> | 2012-10-11 19:57:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-13 14:08:44 (GMT) |
commit | d1f8828cc8094efd098db2dea85b7ec6c2f971dd (patch) | |
tree | 6198e1a92d57ca8ea7798f3201ad9924a2de3f53 /Source/cmGlobalVisualStudio71Generator.cxx | |
parent | b777272b0b165a62d61b745a394fe4fc99dc66ee (diff) | |
download | CMake-d1f8828cc8094efd098db2dea85b7ec6c2f971dd.zip CMake-d1f8828cc8094efd098db2dea85b7ec6c2f971dd.tar.gz CMake-d1f8828cc8094efd098db2dea85b7ec6c2f971dd.tar.bz2 |
Add property EXCLUDE_FROM_DEFAULT_BUILD_<CONFIG>
Allow EXCLUDE_FROM_DEFAULT_BUILD to be specified per configuration.
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio71Generator.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx index ab2308f..736efd5 100644 --- a/Source/cmGlobalVisualStudio71Generator.cxx +++ b/Source/cmGlobalVisualStudio71Generator.cxx @@ -273,9 +273,10 @@ void cmGlobalVisualStudio71Generator // Write a dsp file into the SLN file, Note, that dependencies from // executables to the libraries it uses are also done here void cmGlobalVisualStudio71Generator -::WriteProjectConfigurations(std::ostream& fout, const char* name, - bool partOfDefaultBuild, - const char* platformMapping) +::WriteProjectConfigurations( + std::ostream& fout, const char* name, + const std::set<std::string>& configsPartOfDefaultBuild, + const char* platformMapping) { std::string guid = this->GetGUID(name); for(std::vector<std::string>::iterator i = this->Configurations.begin(); @@ -284,7 +285,9 @@ void cmGlobalVisualStudio71Generator fout << "\t\t{" << guid << "}." << *i << ".ActiveCfg = " << *i << "|" << (platformMapping ? platformMapping : "Win32") << std::endl; - if(partOfDefaultBuild) + std::set<std::string>::const_iterator + ci = configsPartOfDefaultBuild.find(*i); + if(!(ci == configsPartOfDefaultBuild.end())) { fout << "\t\t{" << guid << "}." << *i << ".Build.0 = " << *i << "|" |