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

Method AppendFlags

Source/cmLocalGenerator.cxx:2556–2568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2554}
2555
2556void cmLocalGenerator::AppendFlags(std::string& flags,
2557 std::string const& newFlags) const
2558{
2559 bool allSpaces =
2560 std::all_of(newFlags.begin(), newFlags.end(), cmsysString_isspace);
2561
2562 if (!newFlags.empty() && !allSpaces) {
2563 if (!flags.empty()) {
2564 flags += " ";
2565 }
2566 flags += newFlags;
2567 }
2568}
2569
2570void cmLocalGenerator::AppendFlags(
2571 std::string& flags, std::vector<BT<std::string>> const& newFlags) const

Callers 15

AddCompileOptionsMethod · 0.95
GetStaticLibraryFlagsMethod · 0.95
GetTargetFlagsMethod · 0.95
GetTargetCompileFlagsMethod · 0.95
AddLanguageFlagsMethod · 0.95
AppendFlagEscapeMethod · 0.95
AppendLinkerTypeFlagsMethod · 0.95

Calls 12

GetGlobalGeneratorMethod · 0.95
GetIsInTryCompileMethod · 0.80
GetEncodedLiteralMethod · 0.80
cmStrCatFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
GetCMakeInstanceMethod · 0.45
IssueMessageMethod · 0.45
GetBacktraceMethod · 0.45

Tested by

no test coverage detected