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

Method AppendFeatureOptions

Source/cmLocalGenerator.cxx:3968–3980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3966}
3967
3968void cmLocalGenerator::AppendFeatureOptions(std::string& flags,
3969 std::string const& lang,
3970 char const* feature)
3971{
3972 cmValue optionList = this->Makefile->GetDefinition(
3973 cmStrCat("CMAKE_", lang, "_COMPILE_OPTIONS_", feature));
3974 if (optionList) {
3975 cmList options{ *optionList };
3976 for (std::string const& o : options) {
3977 this->AppendFlagEscape(flags, o);
3978 }
3979 }
3980}
3981
3982cmValue cmLocalGenerator::GetFeature(std::string const& feature,
3983 std::string const& config)

Callers 5

GetTargetCompileFlagsMethod · 0.95
AddFeatureFlagsMethod · 0.95
CreateBuildSettingsMethod · 0.80

Calls 3

AppendFlagEscapeMethod · 0.95
cmStrCatFunction · 0.70
GetDefinitionMethod · 0.45

Tested by

no test coverage detected