mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 14:40:26 -06:00
VS: Do not accumulate configurations globally (#15577)
Drop the VS >= 7 generator's global Configurations member and instead lookup configurations using cmMakefile::GetConfigurations where needed. This avoids accumulating all CMAKE_CONFIGURATION_TYPES values ever encountered by a project() or enable_language() command and allows the final value to be used in each directory. We don't officially support per-directory CMAKE_CONFIGURATION_TYPES values but we certainly should not generate configurations not in the final value in the top level directory.
This commit is contained in:
@@ -54,7 +54,8 @@ protected:
|
||||
virtual void WriteSLNFile(std::ostream& fout,
|
||||
cmLocalGenerator* root,
|
||||
std::vector<cmLocalGenerator*>& generators);
|
||||
virtual void WriteSolutionConfigurations(std::ostream& fout);
|
||||
virtual void WriteSolutionConfigurations(
|
||||
std::ostream& fout, std::vector<std::string> const& configs);
|
||||
virtual void WriteProject(std::ostream& fout,
|
||||
const std::string& name, const char* path,
|
||||
cmTarget const& t);
|
||||
@@ -63,6 +64,7 @@ protected:
|
||||
cmTarget const& t);
|
||||
virtual void WriteProjectConfigurations(
|
||||
std::ostream& fout, const std::string& name, cmTarget::TargetType type,
|
||||
std::vector<std::string> const& configs,
|
||||
const std::set<std::string>& configsPartOfDefaultBuild,
|
||||
const std::string& platformMapping = "");
|
||||
virtual void WriteExternalProject(std::ostream& fout,
|
||||
|
||||
Reference in New Issue
Block a user