cmGlobalVisualStudio8Generator.cxx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmGlobalVisualStudio8Generator.h"
  4. #include <algorithm>
  5. #include <functional>
  6. #include <ostream>
  7. #include <utility>
  8. #include <cm/memory>
  9. #include <cmext/algorithm>
  10. #include <cmext/memory>
  11. #include "cmCustomCommand.h"
  12. #include "cmCustomCommandLines.h"
  13. #include "cmCustomCommandTypes.h"
  14. #include "cmGeneratedFileStream.h"
  15. #include "cmGeneratorExpression.h"
  16. #include "cmGeneratorTarget.h"
  17. #include "cmGlobalGenerator.h"
  18. #include "cmGlobalVisualStudio7Generator.h"
  19. #include "cmGlobalVisualStudioGenerator.h"
  20. #include "cmList.h"
  21. #include "cmListFileCache.h"
  22. #include "cmLocalGenerator.h"
  23. #include "cmLocalVisualStudio7Generator.h"
  24. #include "cmMakefile.h"
  25. #include "cmPolicies.h"
  26. #include "cmSourceFile.h"
  27. #include "cmStateTypes.h"
  28. #include "cmStringAlgorithms.h"
  29. #include "cmSystemTools.h"
  30. #include "cmTarget.h"
  31. #include "cmTargetDepend.h"
  32. #include "cmValue.h"
  33. #include "cmVisualStudioGeneratorOptions.h"
  34. #include "cmake.h"
  35. struct cmIDEFlagTable;
  36. cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator(
  37. cmake* cm, const std::string& name,
  38. std::string const& platformInGeneratorName)
  39. : cmGlobalVisualStudio71Generator(cm, platformInGeneratorName)
  40. {
  41. this->ProjectConfigurationSectionName = "ProjectConfigurationPlatforms";
  42. this->Name = name;
  43. this->ExtraFlagTable =
  44. cmGlobalVisualStudio8Generator::GetExtraFlagTableVS8();
  45. }
  46. std::string cmGlobalVisualStudio8Generator::FindDevEnvCommand()
  47. {
  48. // First look for VCExpress.
  49. std::string vsxcmd;
  50. std::string vsxkey =
  51. cmStrCat(R"(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VCExpress\)",
  52. this->GetIDEVersion(), ";InstallDir");
  53. if (cmSystemTools::ReadRegistryValue(vsxkey, vsxcmd,
  54. cmSystemTools::KeyWOW64_32)) {
  55. cmSystemTools::ConvertToUnixSlashes(vsxcmd);
  56. vsxcmd += "/VCExpress.exe";
  57. return vsxcmd;
  58. }
  59. // Now look for devenv.
  60. return this->cmGlobalVisualStudio71Generator::FindDevEnvCommand();
  61. }
  62. void cmGlobalVisualStudio8Generator::EnableLanguage(
  63. std::vector<std::string> const& lang, cmMakefile* mf, bool optional)
  64. {
  65. for (std::string const& it : lang) {
  66. if (it == "ASM_MASM") {
  67. this->MasmEnabled = true;
  68. }
  69. }
  70. this->AddPlatformDefinitions(mf);
  71. cmGlobalVisualStudio7Generator::EnableLanguage(lang, mf, optional);
  72. }
  73. void cmGlobalVisualStudio8Generator::AddPlatformDefinitions(cmMakefile* mf)
  74. {
  75. if (this->TargetsWindowsCE()) {
  76. mf->AddDefinition("CMAKE_VS_WINCE_VERSION", this->WindowsCEVersion);
  77. }
  78. }
  79. bool cmGlobalVisualStudio8Generator::SetGeneratorPlatform(std::string const& p,
  80. cmMakefile* mf)
  81. {
  82. if (this->PlatformInGeneratorName) {
  83. // This is an old-style generator name that contains the platform name.
  84. // No explicit platform specification is supported, so pass it through
  85. // to our base class implementation, which errors on non-empty platforms.
  86. return this->cmGlobalVisualStudio7Generator::SetGeneratorPlatform(p, mf);
  87. }
  88. if (!this->ParseGeneratorPlatform(p, mf)) {
  89. return false;
  90. }
  91. // FIXME: Add CMAKE_GENERATOR_PLATFORM field to set the framework.
  92. // For now, just report the generator's default, if any.
  93. if (cm::optional<std::string> const& targetFrameworkVersion =
  94. this->GetTargetFrameworkVersion()) {
  95. mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_VERSION",
  96. *targetFrameworkVersion);
  97. }
  98. if (cm::optional<std::string> const& targetFrameworkIdentifier =
  99. this->GetTargetFrameworkIdentifier()) {
  100. mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER",
  101. *targetFrameworkIdentifier);
  102. }
  103. if (cm::optional<std::string> const& targetFrameworkTargetsVersion =
  104. this->GetTargetFrameworkTargetsVersion()) {
  105. mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION",
  106. *targetFrameworkTargetsVersion);
  107. }
  108. // The generator name does not contain the platform name, and so supports
  109. // explicit platform specification. We handled that above, so pass an
  110. // empty platform name to our base class implementation so it does not error.
  111. return this->cmGlobalVisualStudio7Generator::SetGeneratorPlatform("", mf);
  112. }
  113. bool cmGlobalVisualStudio8Generator::ParseGeneratorPlatform(
  114. std::string const& p, cmMakefile* mf)
  115. {
  116. this->GeneratorPlatform.clear();
  117. std::vector<std::string> const fields =
  118. cmTokenize(p, ',', cmTokenizerMode::New);
  119. if (fields.empty()) {
  120. return true;
  121. }
  122. auto fi = fields.begin();
  123. // The first field may be the VS platform.
  124. if (fi->find('=') == fi->npos) {
  125. this->GeneratorPlatform = *fi;
  126. ++fi;
  127. }
  128. std::set<std::string> handled;
  129. // The rest of the fields must be key=value pairs.
  130. for (; fi != fields.end(); ++fi) {
  131. std::string::size_type pos = fi->find('=');
  132. if (pos == fi->npos) {
  133. std::ostringstream e;
  134. /* clang-format off */
  135. e <<
  136. "Generator\n"
  137. " " << this->GetName() << "\n"
  138. "given platform specification\n"
  139. " " << p << "\n"
  140. "that contains a field after the first ',' with no '='."
  141. ;
  142. /* clang-format on */
  143. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  144. return false;
  145. }
  146. std::string const key = fi->substr(0, pos);
  147. std::string const value = fi->substr(pos + 1);
  148. if (!handled.insert(key).second) {
  149. std::ostringstream e;
  150. /* clang-format off */
  151. e <<
  152. "Generator\n"
  153. " " << this->GetName() << "\n"
  154. "given platform specification\n"
  155. " " << p << "\n"
  156. "that contains duplicate field key '" << key << "'."
  157. ;
  158. /* clang-format on */
  159. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  160. return false;
  161. }
  162. if (!this->ProcessGeneratorPlatformField(key, value)) {
  163. std::ostringstream e;
  164. /* clang-format off */
  165. e <<
  166. "Generator\n"
  167. " " << this->GetName() << "\n"
  168. "given platform specification\n"
  169. " " << p << "\n"
  170. "that contains invalid field '" << *fi << "'."
  171. ;
  172. /* clang-format on */
  173. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  174. return false;
  175. }
  176. }
  177. return true;
  178. }
  179. bool cmGlobalVisualStudio8Generator::ProcessGeneratorPlatformField(
  180. std::string const& key, std::string const& value)
  181. {
  182. static_cast<void>(key);
  183. static_cast<void>(value);
  184. return false;
  185. }
  186. cm::optional<std::string> const&
  187. cmGlobalVisualStudio8Generator::GetTargetFrameworkVersion() const
  188. {
  189. return this->DefaultTargetFrameworkVersion;
  190. }
  191. cm::optional<std::string> const&
  192. cmGlobalVisualStudio8Generator::GetTargetFrameworkIdentifier() const
  193. {
  194. return this->DefaultTargetFrameworkIdentifier;
  195. }
  196. cm::optional<std::string> const&
  197. cmGlobalVisualStudio8Generator::GetTargetFrameworkTargetsVersion() const
  198. {
  199. return this->DefaultTargetFrameworkTargetsVersion;
  200. }
  201. std::string cmGlobalVisualStudio8Generator::GetGenerateStampList()
  202. {
  203. return "generate.stamp.list";
  204. }
  205. bool cmGlobalVisualStudio8Generator::UseFolderProperty() const
  206. {
  207. // NOLINTNEXTLINE(bugprone-parent-virtual-call)
  208. return IsExpressEdition() ? false : cmGlobalGenerator::UseFolderProperty();
  209. }
  210. bool cmGlobalVisualStudio8Generator::AddCheckTarget()
  211. {
  212. // Add a special target on which all other targets depend that
  213. // checks the build system and optionally re-runs CMake.
  214. // Skip the target if no regeneration is to be done.
  215. if (this->GlobalSettingIsOn("CMAKE_SUPPRESS_REGENERATION")) {
  216. return false;
  217. }
  218. std::vector<std::unique_ptr<cmLocalGenerator>> const& generators =
  219. this->LocalGenerators;
  220. auto& lg =
  221. cm::static_reference_cast<cmLocalVisualStudio7Generator>(generators[0]);
  222. auto cc = cm::make_unique<cmCustomCommand>();
  223. cmTarget* tgt = lg.AddUtilityCommand(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false,
  224. std::move(cc));
  225. // Collect the input files used to generate all targets in this
  226. // project.
  227. std::vector<std::string> listFiles;
  228. for (const auto& gen : generators) {
  229. cm::append(listFiles, gen->GetMakefile()->GetListFiles());
  230. }
  231. // Sort the list of input files and remove duplicates.
  232. std::sort(listFiles.begin(), listFiles.end(), std::less<std::string>());
  233. auto new_end = std::unique(listFiles.begin(), listFiles.end());
  234. listFiles.erase(new_end, listFiles.end());
  235. auto ptr = cm::make_unique<cmGeneratorTarget>(tgt, &lg);
  236. auto* gt = ptr.get();
  237. lg.AddGeneratorTarget(std::move(ptr));
  238. // Organize in the "predefined targets" folder:
  239. //
  240. if (this->UseFolderProperty()) {
  241. tgt->SetProperty("FOLDER", this->GetPredefinedTargetsFolder());
  242. }
  243. // Create a list of all stamp files for this project.
  244. std::vector<std::string> stamps;
  245. std::string stampList = cmStrCat(
  246. "CMakeFiles/", cmGlobalVisualStudio8Generator::GetGenerateStampList());
  247. {
  248. std::string stampListFile =
  249. cmStrCat(generators[0]->GetMakefile()->GetCurrentBinaryDirectory(), '/',
  250. stampList);
  251. std::string stampFile;
  252. cmGeneratedFileStream fout(stampListFile);
  253. for (const auto& gi : generators) {
  254. stampFile = cmStrCat(gi->GetMakefile()->GetCurrentBinaryDirectory(),
  255. "/CMakeFiles/generate.stamp");
  256. fout << stampFile << '\n';
  257. stamps.push_back(stampFile);
  258. }
  259. }
  260. // Add a custom rule to re-run CMake if any input files changed.
  261. {
  262. // The custom rule runs cmake so set UTF-8 pipes.
  263. bool stdPipesUTF8 = true;
  264. // Add a custom prebuild target to run the VerifyGlobs script.
  265. cmake* cm = this->GetCMakeInstance();
  266. if (cm->DoWriteGlobVerifyTarget()) {
  267. cmCustomCommandLines verifyCommandLines = cmMakeSingleCommandLine(
  268. { cmSystemTools::GetCMakeCommand(), "-P", cm->GetGlobVerifyScript() });
  269. std::vector<std::string> byproducts;
  270. byproducts.push_back(cm->GetGlobVerifyStamp());
  271. cc = cm::make_unique<cmCustomCommand>();
  272. cc->SetByproducts(byproducts);
  273. cc->SetCommandLines(verifyCommandLines);
  274. cc->SetComment("Checking File Globs");
  275. cc->SetStdPipesUTF8(stdPipesUTF8);
  276. lg.AddCustomCommandToTarget(CMAKE_CHECK_BUILD_SYSTEM_TARGET,
  277. cmCustomCommandType::PRE_BUILD,
  278. std::move(cc));
  279. // Ensure ZERO_CHECK always runs in Visual Studio using MSBuild,
  280. // otherwise the prebuild command will not be run.
  281. tgt->SetProperty("VS_GLOBAL_DisableFastUpToDateCheck", "true");
  282. listFiles.push_back(cm->GetGlobVerifyStamp());
  283. }
  284. // Create a rule to re-run CMake.
  285. std::string argS = cmStrCat("-S", lg.GetSourceDirectory());
  286. std::string argB = cmStrCat("-B", lg.GetBinaryDirectory());
  287. std::string const sln =
  288. cmStrCat(lg.GetBinaryDirectory(), '/', lg.GetProjectName(), ".sln");
  289. cmCustomCommandLines commandLines = cmMakeSingleCommandLine(
  290. { cmSystemTools::GetCMakeCommand(), argS, argB, "--check-stamp-list",
  291. stampList, "--vs-solution-file", sln });
  292. if (cm->GetIgnoreWarningAsError()) {
  293. commandLines[0].emplace_back("--compile-no-warning-as-error");
  294. }
  295. // Add the rule. Note that we cannot use the CMakeLists.txt
  296. // file as the main dependency because it would get
  297. // overwritten by the CreateVCProjBuildRule.
  298. // (this could be avoided with per-target source files)
  299. cc = cm::make_unique<cmCustomCommand>();
  300. cc->SetOutputs(stamps);
  301. cc->SetDepends(listFiles);
  302. cc->SetCommandLines(commandLines);
  303. cc->SetComment("Checking Build System");
  304. cc->SetEscapeOldStyle(false);
  305. cc->SetStdPipesUTF8(stdPipesUTF8);
  306. if (cmSourceFile* file =
  307. lg.AddCustomCommandToOutput(std::move(cc), true)) {
  308. gt->AddSource(file->ResolveFullPath());
  309. } else {
  310. cmSystemTools::Error(cmStrCat("Error adding rule for ", stamps[0]));
  311. }
  312. }
  313. return true;
  314. }
  315. void cmGlobalVisualStudio8Generator::AddExtraIDETargets()
  316. {
  317. cmGlobalVisualStudio7Generator::AddExtraIDETargets();
  318. if (this->AddCheckTarget()) {
  319. for (auto& LocalGenerator : this->LocalGenerators) {
  320. const auto& tgts = LocalGenerator->GetGeneratorTargets();
  321. // All targets depend on the build-system check target.
  322. for (const auto& ti : tgts) {
  323. if (ti->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {
  324. ti->Target->AddUtility(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false);
  325. }
  326. }
  327. }
  328. }
  329. }
  330. void cmGlobalVisualStudio8Generator::WriteSolutionConfigurations(
  331. std::ostream& fout, std::vector<std::string> const& configs)
  332. {
  333. fout << "\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n";
  334. for (std::string const& i : configs) {
  335. fout << "\t\t" << i << '|' << this->GetPlatformName() << " = " << i << '|'
  336. << this->GetPlatformName() << '\n';
  337. }
  338. fout << "\tEndGlobalSection\n";
  339. }
  340. void cmGlobalVisualStudio8Generator::WriteProjectConfigurations(
  341. std::ostream& fout, const std::string& name, cmGeneratorTarget const& target,
  342. std::vector<std::string> const& configs,
  343. const std::set<std::string>& configsPartOfDefaultBuild,
  344. std::string const& platformMapping)
  345. {
  346. std::string guid = this->GetGUID(name);
  347. for (std::string const& i : configs) {
  348. cmList mapConfig;
  349. const char* dstConfig = i.c_str();
  350. if (target.GetProperty("EXTERNAL_MSPROJECT")) {
  351. if (cmValue m = target.GetProperty(
  352. cmStrCat("MAP_IMPORTED_CONFIG_", cmSystemTools::UpperCase(i)))) {
  353. mapConfig.assign(*m);
  354. if (!mapConfig.empty()) {
  355. dstConfig = mapConfig[0].c_str();
  356. }
  357. }
  358. }
  359. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  360. << ".ActiveCfg = " << dstConfig << '|'
  361. << (!platformMapping.empty() ? platformMapping
  362. : this->GetPlatformName())
  363. << '\n';
  364. auto ci = configsPartOfDefaultBuild.find(i);
  365. if (!(ci == configsPartOfDefaultBuild.end())) {
  366. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  367. << ".Build.0 = " << dstConfig << '|'
  368. << (!platformMapping.empty() ? platformMapping
  369. : this->GetPlatformName())
  370. << '\n';
  371. }
  372. if (this->NeedsDeploy(target, dstConfig)) {
  373. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  374. << ".Deploy.0 = " << dstConfig << '|'
  375. << (!platformMapping.empty() ? platformMapping
  376. : this->GetPlatformName())
  377. << '\n';
  378. }
  379. }
  380. }
  381. bool cmGlobalVisualStudio8Generator::NeedsDeploy(
  382. cmGeneratorTarget const& target, const char* config) const
  383. {
  384. cmStateEnums::TargetType const type = target.GetType();
  385. if (type != cmStateEnums::EXECUTABLE &&
  386. type != cmStateEnums::SHARED_LIBRARY) {
  387. // deployment only valid on executables and shared libraries.
  388. return false;
  389. }
  390. if (cmValue prop = target.GetProperty("VS_SOLUTION_DEPLOY")) {
  391. // If set, it dictates behavior
  392. return cmIsOn(
  393. cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator, config));
  394. }
  395. // To be deprecated, disable deployment even if target supports it.
  396. if (cmValue prop = target.GetProperty("VS_NO_SOLUTION_DEPLOY")) {
  397. if (cmIsOn(cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator,
  398. config))) {
  399. // If true, always disable deployment
  400. return false;
  401. }
  402. }
  403. // Legacy behavior, enabled deployment based on 'hard-coded' target
  404. // platforms.
  405. return this->TargetSystemSupportsDeployment();
  406. }
  407. bool cmGlobalVisualStudio8Generator::TargetSystemSupportsDeployment() const
  408. {
  409. return this->TargetsWindowsCE();
  410. }
  411. bool cmGlobalVisualStudio8Generator::ComputeTargetDepends()
  412. {
  413. // Skip over the cmGlobalVisualStudioGenerator implementation!
  414. // We do not need the support that VS <= 7.1 needs.
  415. // NOLINTNEXTLINE(bugprone-parent-virtual-call)
  416. return this->cmGlobalGenerator::ComputeTargetDepends();
  417. }
  418. void cmGlobalVisualStudio8Generator::WriteProjectDepends(
  419. std::ostream& fout, const std::string&, const std::string&,
  420. cmGeneratorTarget const* gt)
  421. {
  422. TargetDependSet const& unordered = this->GetTargetDirectDepends(gt);
  423. OrderedTargetDependSet depends(unordered, std::string());
  424. for (cmTargetDepend const& i : depends) {
  425. if (!this->IsInSolution(i)) {
  426. continue;
  427. }
  428. std::string guid = this->GetGUID(i->GetName());
  429. fout << "\t\t{" << guid << "} = {" << guid << "}\n";
  430. }
  431. }
  432. bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
  433. cmGeneratorTarget* target)
  434. {
  435. // Look for utility dependencies that magically link.
  436. auto const& utilities = target->GetUtilities();
  437. return std::any_of(
  438. utilities.begin(), utilities.end(),
  439. [target](BT<std::pair<std::string, bool>> const& ui) {
  440. if (cmGeneratorTarget* depTarget =
  441. target->GetLocalGenerator()->FindGeneratorTargetToUse(
  442. ui.Value.first)) {
  443. if (depTarget->IsInBuildSystem() &&
  444. depTarget->GetProperty("EXTERNAL_MSPROJECT")) {
  445. // This utility dependency names an external .vcproj target.
  446. // We use LinkLibraryDependencies="true" to link to it without
  447. // predicting the .lib file location or name.
  448. return true;
  449. }
  450. }
  451. return false;
  452. });
  453. }
  454. static cmVS7FlagTable cmVS8ExtraFlagTable[] = {
  455. { "CallingConvention", "Gd", "cdecl", "0", 0 },
  456. { "CallingConvention", "Gr", "fastcall", "1", 0 },
  457. { "CallingConvention", "Gz", "stdcall", "2", 0 },
  458. { "Detect64BitPortabilityProblems", "Wp64",
  459. "Detect 64Bit Portability Problems", "true", 0 },
  460. { "ErrorReporting", "errorReport:prompt", "Report immediately", "1", 0 },
  461. { "ErrorReporting", "errorReport:queue", "Queue for next login", "2", 0 },
  462. // Precompiled header and related options. Note that the
  463. // UsePrecompiledHeader entries are marked as "Continue" so that the
  464. // corresponding PrecompiledHeaderThrough entry can be found.
  465. { "UsePrecompiledHeader", "Yu", "Use Precompiled Header", "2",
  466. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  467. { "PrecompiledHeaderThrough", "Yu", "Precompiled Header Name", "",
  468. cmVS7FlagTable::UserValueRequired },
  469. { "UsePrecompiledHeader", "Y-", "Don't use precompiled header", "0", 0 },
  470. // There is no YX option in the VS8 IDE.
  471. // Exception handling mode. If no entries match, it will be FALSE.
  472. { "ExceptionHandling", "GX", "enable c++ exceptions", "1", 0 },
  473. { "ExceptionHandling", "EHsc", "enable c++ exceptions", "1", 0 },
  474. { "ExceptionHandling", "EHa", "enable SEH exceptions", "2", 0 },
  475. { "EnablePREfast", "analyze", "", "true", 0 },
  476. { "EnablePREfast", "analyze-", "", "false", 0 },
  477. // Language options
  478. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t", "wchar_t is a built-in type",
  479. "true", 0 },
  480. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t-",
  481. "wchar_t is not a built-in type", "false", 0 },
  482. { "", "", "", "", 0 }
  483. };
  484. cmIDEFlagTable const* cmGlobalVisualStudio8Generator::GetExtraFlagTableVS8()
  485. {
  486. return cmVS8ExtraFlagTable;
  487. }