cmGlobalVisualStudio8Generator.cxx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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 = cmTokenize(p, ",");
  118. auto fi = fields.begin();
  119. if (fi == fields.end()) {
  120. return true;
  121. }
  122. // The first field may be the VS platform.
  123. if (fi->find('=') == fi->npos) {
  124. this->GeneratorPlatform = *fi;
  125. ++fi;
  126. }
  127. std::set<std::string> handled;
  128. // The rest of the fields must be key=value pairs.
  129. for (; fi != fields.end(); ++fi) {
  130. std::string::size_type pos = fi->find('=');
  131. if (pos == fi->npos) {
  132. std::ostringstream e;
  133. /* clang-format off */
  134. e <<
  135. "Generator\n"
  136. " " << this->GetName() << "\n"
  137. "given platform specification\n"
  138. " " << p << "\n"
  139. "that contains a field after the first ',' with no '='."
  140. ;
  141. /* clang-format on */
  142. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  143. return false;
  144. }
  145. std::string const key = fi->substr(0, pos);
  146. std::string const value = fi->substr(pos + 1);
  147. if (!handled.insert(key).second) {
  148. std::ostringstream e;
  149. /* clang-format off */
  150. e <<
  151. "Generator\n"
  152. " " << this->GetName() << "\n"
  153. "given platform specification\n"
  154. " " << p << "\n"
  155. "that contains duplicate field key '" << key << "'."
  156. ;
  157. /* clang-format on */
  158. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  159. return false;
  160. }
  161. if (!this->ProcessGeneratorPlatformField(key, value)) {
  162. std::ostringstream e;
  163. /* clang-format off */
  164. e <<
  165. "Generator\n"
  166. " " << this->GetName() << "\n"
  167. "given platform specification\n"
  168. " " << p << "\n"
  169. "that contains invalid field '" << *fi << "'."
  170. ;
  171. /* clang-format on */
  172. mf->IssueMessage(MessageType::FATAL_ERROR, e.str());
  173. return false;
  174. }
  175. }
  176. return true;
  177. }
  178. bool cmGlobalVisualStudio8Generator::ProcessGeneratorPlatformField(
  179. std::string const& key, std::string const& value)
  180. {
  181. static_cast<void>(key);
  182. static_cast<void>(value);
  183. return false;
  184. }
  185. cm::optional<std::string> const&
  186. cmGlobalVisualStudio8Generator::GetTargetFrameworkVersion() const
  187. {
  188. return this->DefaultTargetFrameworkVersion;
  189. }
  190. cm::optional<std::string> const&
  191. cmGlobalVisualStudio8Generator::GetTargetFrameworkIdentifier() const
  192. {
  193. return this->DefaultTargetFrameworkIdentifier;
  194. }
  195. cm::optional<std::string> const&
  196. cmGlobalVisualStudio8Generator::GetTargetFrameworkTargetsVersion() const
  197. {
  198. return this->DefaultTargetFrameworkTargetsVersion;
  199. }
  200. std::string cmGlobalVisualStudio8Generator::GetGenerateStampList()
  201. {
  202. return "generate.stamp.list";
  203. }
  204. void cmGlobalVisualStudio8Generator::Configure()
  205. {
  206. this->cmGlobalVisualStudio7Generator::Configure();
  207. }
  208. bool cmGlobalVisualStudio8Generator::UseFolderProperty() const
  209. {
  210. // NOLINTNEXTLINE(bugprone-parent-virtual-call)
  211. return IsExpressEdition() ? false : cmGlobalGenerator::UseFolderProperty();
  212. }
  213. bool cmGlobalVisualStudio8Generator::AddCheckTarget()
  214. {
  215. // Add a special target on which all other targets depend that
  216. // checks the build system and optionally re-runs CMake.
  217. // Skip the target if no regeneration is to be done.
  218. if (this->GlobalSettingIsOn("CMAKE_SUPPRESS_REGENERATION")) {
  219. return false;
  220. }
  221. std::vector<std::unique_ptr<cmLocalGenerator>> const& generators =
  222. this->LocalGenerators;
  223. auto& lg =
  224. cm::static_reference_cast<cmLocalVisualStudio7Generator>(generators[0]);
  225. auto cc = cm::make_unique<cmCustomCommand>();
  226. cmTarget* tgt = lg.AddUtilityCommand(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false,
  227. std::move(cc));
  228. // Collect the input files used to generate all targets in this
  229. // project.
  230. std::vector<std::string> listFiles;
  231. for (const auto& gen : generators) {
  232. cm::append(listFiles, gen->GetMakefile()->GetListFiles());
  233. }
  234. // Sort the list of input files and remove duplicates.
  235. std::sort(listFiles.begin(), listFiles.end(), std::less<std::string>());
  236. auto new_end = std::unique(listFiles.begin(), listFiles.end());
  237. listFiles.erase(new_end, listFiles.end());
  238. auto ptr = cm::make_unique<cmGeneratorTarget>(tgt, &lg);
  239. auto* gt = ptr.get();
  240. lg.AddGeneratorTarget(std::move(ptr));
  241. // Organize in the "predefined targets" folder:
  242. //
  243. if (this->UseFolderProperty()) {
  244. tgt->SetProperty("FOLDER", this->GetPredefinedTargetsFolder());
  245. }
  246. // Create a list of all stamp files for this project.
  247. std::vector<std::string> stamps;
  248. std::string stampList = cmStrCat(
  249. "CMakeFiles/", cmGlobalVisualStudio8Generator::GetGenerateStampList());
  250. {
  251. std::string stampListFile =
  252. cmStrCat(generators[0]->GetMakefile()->GetCurrentBinaryDirectory(), '/',
  253. stampList);
  254. std::string stampFile;
  255. cmGeneratedFileStream fout(stampListFile);
  256. for (const auto& gi : generators) {
  257. stampFile = cmStrCat(gi->GetMakefile()->GetCurrentBinaryDirectory(),
  258. "/CMakeFiles/generate.stamp");
  259. fout << stampFile << '\n';
  260. stamps.push_back(stampFile);
  261. }
  262. }
  263. // Add a custom rule to re-run CMake if any input files changed.
  264. {
  265. // The custom rule runs cmake so set UTF-8 pipes.
  266. bool stdPipesUTF8 = true;
  267. // Add a custom prebuild target to run the VerifyGlobs script.
  268. cmake* cm = this->GetCMakeInstance();
  269. if (cm->DoWriteGlobVerifyTarget()) {
  270. cmCustomCommandLines verifyCommandLines = cmMakeSingleCommandLine(
  271. { cmSystemTools::GetCMakeCommand(), "-P", cm->GetGlobVerifyScript() });
  272. std::vector<std::string> byproducts;
  273. byproducts.push_back(cm->GetGlobVerifyStamp());
  274. cc = cm::make_unique<cmCustomCommand>();
  275. cc->SetByproducts(byproducts);
  276. cc->SetCommandLines(verifyCommandLines);
  277. cc->SetComment("Checking File Globs");
  278. cc->SetStdPipesUTF8(stdPipesUTF8);
  279. lg.AddCustomCommandToTarget(CMAKE_CHECK_BUILD_SYSTEM_TARGET,
  280. cmCustomCommandType::PRE_BUILD,
  281. std::move(cc));
  282. // Ensure ZERO_CHECK always runs in Visual Studio using MSBuild,
  283. // otherwise the prebuild command will not be run.
  284. tgt->SetProperty("VS_GLOBAL_DisableFastUpToDateCheck", "true");
  285. listFiles.push_back(cm->GetGlobVerifyStamp());
  286. }
  287. // Create a rule to re-run CMake.
  288. std::string argS = cmStrCat("-S", lg.GetSourceDirectory());
  289. std::string argB = cmStrCat("-B", lg.GetBinaryDirectory());
  290. std::string const sln =
  291. cmStrCat(lg.GetBinaryDirectory(), '/', lg.GetProjectName(), ".sln");
  292. cmCustomCommandLines commandLines = cmMakeSingleCommandLine(
  293. { cmSystemTools::GetCMakeCommand(), argS, argB, "--check-stamp-list",
  294. stampList, "--vs-solution-file", sln });
  295. if (cm->GetIgnoreWarningAsError()) {
  296. commandLines[0].emplace_back("--compile-no-warning-as-error");
  297. }
  298. // Add the rule. Note that we cannot use the CMakeLists.txt
  299. // file as the main dependency because it would get
  300. // overwritten by the CreateVCProjBuildRule.
  301. // (this could be avoided with per-target source files)
  302. cc = cm::make_unique<cmCustomCommand>();
  303. cc->SetOutputs(stamps);
  304. cc->SetDepends(listFiles);
  305. cc->SetCommandLines(commandLines);
  306. cc->SetComment("Checking Build System");
  307. cc->SetEscapeOldStyle(false);
  308. cc->SetStdPipesUTF8(stdPipesUTF8);
  309. if (cmSourceFile* file =
  310. lg.AddCustomCommandToOutput(std::move(cc), true)) {
  311. gt->AddSource(file->ResolveFullPath());
  312. } else {
  313. cmSystemTools::Error(cmStrCat("Error adding rule for ", stamps[0]));
  314. }
  315. }
  316. return true;
  317. }
  318. void cmGlobalVisualStudio8Generator::AddExtraIDETargets()
  319. {
  320. cmGlobalVisualStudio7Generator::AddExtraIDETargets();
  321. if (this->AddCheckTarget()) {
  322. for (auto& LocalGenerator : this->LocalGenerators) {
  323. const auto& tgts = LocalGenerator->GetGeneratorTargets();
  324. // All targets depend on the build-system check target.
  325. for (const auto& ti : tgts) {
  326. if (ti->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {
  327. ti->Target->AddUtility(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false);
  328. }
  329. }
  330. }
  331. }
  332. }
  333. void cmGlobalVisualStudio8Generator::WriteSolutionConfigurations(
  334. std::ostream& fout, std::vector<std::string> const& configs)
  335. {
  336. fout << "\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n";
  337. for (std::string const& i : configs) {
  338. fout << "\t\t" << i << '|' << this->GetPlatformName() << " = " << i << '|'
  339. << this->GetPlatformName() << '\n';
  340. }
  341. fout << "\tEndGlobalSection\n";
  342. }
  343. void cmGlobalVisualStudio8Generator::WriteProjectConfigurations(
  344. std::ostream& fout, const std::string& name, cmGeneratorTarget const& target,
  345. std::vector<std::string> const& configs,
  346. const std::set<std::string>& configsPartOfDefaultBuild,
  347. std::string const& platformMapping)
  348. {
  349. std::string guid = this->GetGUID(name);
  350. for (std::string const& i : configs) {
  351. cmList mapConfig;
  352. const char* dstConfig = i.c_str();
  353. if (target.GetProperty("EXTERNAL_MSPROJECT")) {
  354. if (cmValue m = target.GetProperty(
  355. cmStrCat("MAP_IMPORTED_CONFIG_", cmSystemTools::UpperCase(i)))) {
  356. mapConfig.assign(*m);
  357. if (!mapConfig.empty()) {
  358. dstConfig = mapConfig[0].c_str();
  359. }
  360. }
  361. }
  362. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  363. << ".ActiveCfg = " << dstConfig << '|'
  364. << (!platformMapping.empty() ? platformMapping
  365. : this->GetPlatformName())
  366. << '\n';
  367. auto ci = configsPartOfDefaultBuild.find(i);
  368. if (!(ci == configsPartOfDefaultBuild.end())) {
  369. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  370. << ".Build.0 = " << dstConfig << '|'
  371. << (!platformMapping.empty() ? platformMapping
  372. : this->GetPlatformName())
  373. << '\n';
  374. }
  375. if (this->NeedsDeploy(target, dstConfig)) {
  376. fout << "\t\t{" << guid << "}." << i << '|' << this->GetPlatformName()
  377. << ".Deploy.0 = " << dstConfig << '|'
  378. << (!platformMapping.empty() ? platformMapping
  379. : this->GetPlatformName())
  380. << '\n';
  381. }
  382. }
  383. }
  384. bool cmGlobalVisualStudio8Generator::NeedsDeploy(
  385. cmGeneratorTarget const& target, const char* config) const
  386. {
  387. cmStateEnums::TargetType const type = target.GetType();
  388. if (type != cmStateEnums::EXECUTABLE &&
  389. type != cmStateEnums::SHARED_LIBRARY) {
  390. // deployment only valid on executables and shared libraries.
  391. return false;
  392. }
  393. if (cmValue prop = target.GetProperty("VS_SOLUTION_DEPLOY")) {
  394. // If set, it dictates behavior
  395. return cmIsOn(
  396. cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator, config));
  397. }
  398. // To be deprecated, disable deployment even if target supports it.
  399. if (cmValue prop = target.GetProperty("VS_NO_SOLUTION_DEPLOY")) {
  400. if (cmIsOn(cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator,
  401. config))) {
  402. // If true, always disable deployment
  403. return false;
  404. }
  405. }
  406. // Legacy behavior, enabled deployment based on 'hard-coded' target
  407. // platforms.
  408. return this->TargetSystemSupportsDeployment();
  409. }
  410. bool cmGlobalVisualStudio8Generator::TargetSystemSupportsDeployment() const
  411. {
  412. return this->TargetsWindowsCE();
  413. }
  414. bool cmGlobalVisualStudio8Generator::ComputeTargetDepends()
  415. {
  416. // Skip over the cmGlobalVisualStudioGenerator implementation!
  417. // We do not need the support that VS <= 7.1 needs.
  418. // NOLINTNEXTLINE(bugprone-parent-virtual-call)
  419. return this->cmGlobalGenerator::ComputeTargetDepends();
  420. }
  421. void cmGlobalVisualStudio8Generator::WriteProjectDepends(
  422. std::ostream& fout, const std::string&, const std::string&,
  423. cmGeneratorTarget const* gt)
  424. {
  425. TargetDependSet const& unordered = this->GetTargetDirectDepends(gt);
  426. OrderedTargetDependSet depends(unordered, std::string());
  427. for (cmTargetDepend const& i : depends) {
  428. if (!this->IsInSolution(i)) {
  429. continue;
  430. }
  431. std::string guid = this->GetGUID(i->GetName());
  432. fout << "\t\t{" << guid << "} = {" << guid << "}\n";
  433. }
  434. }
  435. bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
  436. cmGeneratorTarget* target)
  437. {
  438. // Look for utility dependencies that magically link.
  439. auto const& utilities = target->GetUtilities();
  440. return std::any_of(
  441. utilities.begin(), utilities.end(),
  442. [target](BT<std::pair<std::string, bool>> const& ui) {
  443. if (cmGeneratorTarget* depTarget =
  444. target->GetLocalGenerator()->FindGeneratorTargetToUse(
  445. ui.Value.first)) {
  446. if (depTarget->IsInBuildSystem() &&
  447. depTarget->GetProperty("EXTERNAL_MSPROJECT")) {
  448. // This utility dependency names an external .vcproj target.
  449. // We use LinkLibraryDependencies="true" to link to it without
  450. // predicting the .lib file location or name.
  451. return true;
  452. }
  453. }
  454. return false;
  455. });
  456. }
  457. static cmVS7FlagTable cmVS8ExtraFlagTable[] = {
  458. { "CallingConvention", "Gd", "cdecl", "0", 0 },
  459. { "CallingConvention", "Gr", "fastcall", "1", 0 },
  460. { "CallingConvention", "Gz", "stdcall", "2", 0 },
  461. { "Detect64BitPortabilityProblems", "Wp64",
  462. "Detect 64Bit Portability Problems", "true", 0 },
  463. { "ErrorReporting", "errorReport:prompt", "Report immediately", "1", 0 },
  464. { "ErrorReporting", "errorReport:queue", "Queue for next login", "2", 0 },
  465. // Precompiled header and related options. Note that the
  466. // UsePrecompiledHeader entries are marked as "Continue" so that the
  467. // corresponding PrecompiledHeaderThrough entry can be found.
  468. { "UsePrecompiledHeader", "Yu", "Use Precompiled Header", "2",
  469. cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
  470. { "PrecompiledHeaderThrough", "Yu", "Precompiled Header Name", "",
  471. cmVS7FlagTable::UserValueRequired },
  472. { "UsePrecompiledHeader", "Y-", "Don't use precompiled header", "0", 0 },
  473. // There is no YX option in the VS8 IDE.
  474. // Exception handling mode. If no entries match, it will be FALSE.
  475. { "ExceptionHandling", "GX", "enable c++ exceptions", "1", 0 },
  476. { "ExceptionHandling", "EHsc", "enable c++ exceptions", "1", 0 },
  477. { "ExceptionHandling", "EHa", "enable SEH exceptions", "2", 0 },
  478. { "EnablePREfast", "analyze", "", "true", 0 },
  479. { "EnablePREfast", "analyze-", "", "false", 0 },
  480. // Language options
  481. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t", "wchar_t is a built-in type",
  482. "true", 0 },
  483. { "TreatWChar_tAsBuiltInType", "Zc:wchar_t-",
  484. "wchar_t is not a built-in type", "false", 0 },
  485. { "", "", "", "", 0 }
  486. };
  487. cmIDEFlagTable const* cmGlobalVisualStudio8Generator::GetExtraFlagTableVS8()
  488. {
  489. return cmVS8ExtraFlagTable;
  490. }