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

Method StoreUnknownFlag

Source/cmVisualStudioGeneratorOptions.cxx:300–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300void cmVisualStudioGeneratorOptions::StoreUnknownFlag(std::string const& flag)
301{
302 // Look for Intel Fortran flags that do not map well in the flag table.
303 if (this->CurrentTool == FortranCompiler) {
304 if (flag == "/dbglibs"_s || flag == "-dbglibs"_s) {
305 this->FortranRuntimeDebug = true;
306 return;
307 }
308 if (flag == "/threads"_s || flag == "-threads"_s) {
309 this->FortranRuntimeMT = true;
310 return;
311 }
312 if (flag == "/libs:dll"_s || flag == "-libs:dll"_s) {
313 this->FortranRuntimeDLL = true;
314 return;
315 }
316 if (flag == "/libs:static"_s || flag == "-libs:static"_s) {
317 this->FortranRuntimeDLL = false;
318 return;
319 }
320 }
321
322 // This option is not known. Store it in the output flags.
323 std::string const opts = cmOutputConverter::EscapeWindowsShellArgument(
324 flag.c_str(),
325 cmOutputConverter::Shell_Flag_AllowMakeVariables |
326 cmOutputConverter::Shell_Flag_VSIDE);
327 this->AppendFlagString(this->UnknownFlagField, opts);
328}
329
330cmIDEOptions::FlagValue cmVisualStudioGeneratorOptions::TakeFlag(
331 std::string const& key)

Callers 1

HandleFlagMethod · 0.80

Calls 2

c_strMethod · 0.80
AppendFlagStringMethod · 0.80

Tested by

no test coverage detected