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

Method AddDefineFlag

Source/cmMakefile.cxx:1278–1291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1276}
1277
1278void cmMakefile::AddDefineFlag(std::string const& flag)
1279{
1280 if (flag.empty()) {
1281 return;
1282 }
1283
1284 // If this is really a definition, update COMPILE_DEFINITIONS.
1285 if (this->ParseDefineFlag(flag, false)) {
1286 return;
1287 }
1288
1289 // Add this flag that does not look like a definition.
1290 s_AddDefineFlag(flag, this->DefineFlags);
1291}
1292
1293static void s_RemoveDefineFlag(std::string const& flag, std::string& dflags)
1294{

Callers 1

cmAddDefinitionsCommandFunction · 0.80

Calls 3

ParseDefineFlagMethod · 0.95
s_AddDefineFlagFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected