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

Method RemoveDefineFlag

Source/cmMakefile.cxx:1310–1324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1308}
1309
1310void cmMakefile::RemoveDefineFlag(std::string const& flag)
1311{
1312 // Check the length of the flag to remove.
1313 if (flag.empty()) {
1314 return;
1315 }
1316
1317 // If this is really a definition, update COMPILE_DEFINITIONS.
1318 if (this->ParseDefineFlag(flag, true)) {
1319 return;
1320 }
1321
1322 // Remove this flag that does not look like a definition.
1323 s_RemoveDefineFlag(flag, this->DefineFlags);
1324}
1325
1326void cmMakefile::AddCompileDefinition(std::string const& option)
1327{

Callers 1

Calls 3

ParseDefineFlagMethod · 0.95
s_RemoveDefineFlagFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected