| 298 | } |
| 299 | |
| 300 | void 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 | |
| 330 | cmIDEOptions::FlagValue cmVisualStudioGeneratorOptions::TakeFlag( |
| 331 | std::string const& key) |
no test coverage detected