cmGlobalVisualStudio8Generator.cxx 19 KB

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