| 23 | } |
| 24 | |
| 25 | cmVisualStudioGeneratorOptions::cmVisualStudioGeneratorOptions( |
| 26 | cmLocalVisualStudioGenerator* lg, Tool tool, cmVS7FlagTable const* table, |
| 27 | cmVS7FlagTable const* extraTable) |
| 28 | : cmIDEOptions() |
| 29 | , LocalGenerator(lg) |
| 30 | , CurrentTool(tool) |
| 31 | { |
| 32 | // Store the given flag tables. |
| 33 | this->AddTable(table); |
| 34 | this->AddTable(extraTable); |
| 35 | |
| 36 | // Preprocessor definitions are not allowed for linker tools. |
| 37 | this->AllowDefine = (tool != Linker); |
| 38 | |
| 39 | // include directories are not allowed for linker tools. |
| 40 | this->AllowInclude = (tool != Linker); |
| 41 | |
| 42 | // Slash options are allowed for VS. |
| 43 | this->AllowSlash = true; |
| 44 | |
| 45 | this->FortranRuntimeDebug = false; |
| 46 | this->FortranRuntimeDLL = false; |
| 47 | this->FortranRuntimeMT = false; |
| 48 | |
| 49 | this->UnknownFlagField = "AdditionalOptions"; |
| 50 | } |
| 51 | |
| 52 | void cmVisualStudioGeneratorOptions::AddTable(cmVS7FlagTable const* table) |
| 53 | { |