MCPcopy Create free account
hub / github.com/Kitware/CMake / GeneratesForConfig

Method GeneratesForConfig

Source/cmScriptGenerator.cxx:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool cmScriptGenerator::GeneratesForConfig(std::string const& config)
110{
111 // If this is not a configuration-specific rule then we install.
112 if (this->Configurations.empty()) {
113 return true;
114 }
115
116 // This is a configuration-specific rule. Check if the config
117 // matches this rule.
118 std::string config_upper = cmSystemTools::UpperCase(config);
119 return std::any_of(this->Configurations.begin(), this->Configurations.end(),
120 [&config_upper](std::string const& cfg) -> bool {
121 return cmSystemTools::UpperCase(cfg) == config_upper;
122 });
123}
124
125void cmScriptGenerator::GenerateScriptActionsOnce(std::ostream& os,
126 Indent indent)

Callers 3

TestsForConfigMethod · 0.80
InstallsForConfigMethod · 0.80

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

TestsForConfigMethod · 0.64