cmake/Source/cmGlobalVisualStudio8Generator.cxx

462 lines
16 KiB
C++
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmGlobalVisualStudio8Generator.h"
2016-07-09 11:21:54 +02:00
2022-03-29 21:10:50 +02:00
#include <algorithm>
#include <functional>
#include <ostream>
#include <utility>
2020-08-30 11:54:41 +02:00
#include <cm/memory>
2022-03-29 21:10:50 +02:00
#include <cmext/algorithm>
2020-08-30 11:54:41 +02:00
#include <cmext/memory>
2020-02-01 23:06:01 +01:00
#include "cmCustomCommand.h"
#include "cmCustomCommandLines.h"
2022-03-29 21:10:50 +02:00
#include "cmCustomCommandTypes.h"
2016-07-09 11:21:54 +02:00
#include "cmGeneratedFileStream.h"
2020-02-01 23:06:01 +01:00
#include "cmGeneratorExpression.h"
2016-10-30 18:24:19 +01:00
#include "cmGeneratorTarget.h"
2022-03-29 21:10:50 +02:00
#include "cmGlobalGenerator.h"
#include "cmGlobalVisualStudio7Generator.h"
#include "cmGlobalVisualStudioGenerator.h"
#include "cmListFileCache.h"
#include "cmLocalGenerator.h"
#include "cmLocalVisualStudio7Generator.h"
#include "cmMakefile.h"
2022-03-29 21:10:50 +02:00
#include "cmPolicies.h"
2016-07-09 11:21:54 +02:00
#include "cmSourceFile.h"
2022-03-29 21:10:50 +02:00
#include "cmStateTypes.h"
#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
#include "cmTarget.h"
#include "cmTargetDepend.h"
#include "cmValue.h"
#include "cmVisualStudioGeneratorOptions.h"
#include "cmake.h"
2022-03-29 21:10:50 +02:00
struct cmIDEFlagTable;
2016-07-09 11:21:54 +02:00
cmGlobalVisualStudio8Generator::cmGlobalVisualStudio8Generator(
2019-11-11 23:01:05 +01:00
cmake* cm, const std::string& name,
std::string const& platformInGeneratorName)
: cmGlobalVisualStudio71Generator(cm, platformInGeneratorName)
{
this->ProjectConfigurationSectionName = "ProjectConfigurationPlatforms";
2013-03-16 19:13:01 +02:00
this->Name = name;
2015-08-17 11:37:30 +02:00
this->ExtraFlagTable = this->GetExtraFlagTableVS8();
2013-03-16 19:13:01 +02:00
}
2014-08-03 19:52:23 +02:00
std::string cmGlobalVisualStudio8Generator::FindDevEnvCommand()
{
// First look for VCExpress.
std::string vsxcmd;
2020-02-01 23:06:01 +01:00
std::string vsxkey =
cmStrCat("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VCExpress\\",
this->GetIDEVersion(), ";InstallDir");
2016-07-09 11:21:54 +02:00
if (cmSystemTools::ReadRegistryValue(vsxkey.c_str(), vsxcmd,
cmSystemTools::KeyWOW64_32)) {
2014-08-03 19:52:23 +02:00
cmSystemTools::ConvertToUnixSlashes(vsxcmd);
vsxcmd += "/VCExpress.exe";
return vsxcmd;
2016-07-09 11:21:54 +02:00
}
2014-08-03 19:52:23 +02:00
// Now look for devenv.
return this->cmGlobalVisualStudio71Generator::FindDevEnvCommand();
}
2016-07-09 11:21:54 +02:00
void cmGlobalVisualStudio8Generator::EnableLanguage(
std::vector<std::string> const& lang, cmMakefile* mf, bool optional)
2013-03-16 19:13:01 +02:00
{
2018-04-23 21:13:27 +02:00
for (std::string const& it : lang) {
if (it == "ASM_MASM") {
2015-04-27 22:25:09 +02:00
this->MasmEnabled = true;
}
2016-07-09 11:21:54 +02:00
}
2015-04-27 22:25:09 +02:00
this->AddPlatformDefinitions(mf);
cmGlobalVisualStudio7Generator::EnableLanguage(lang, mf, optional);
}
2013-03-16 19:13:01 +02:00
2015-04-27 22:25:09 +02:00
void cmGlobalVisualStudio8Generator::AddPlatformDefinitions(cmMakefile* mf)
{
2016-07-09 11:21:54 +02:00
if (this->TargetsWindowsCE()) {
2020-02-01 23:06:01 +01:00
mf->AddDefinition("CMAKE_VS_WINCE_VERSION", this->WindowsCEVersion);
2013-03-16 19:13:01 +02:00
}
}
2015-04-27 22:25:09 +02:00
bool cmGlobalVisualStudio8Generator::SetGeneratorPlatform(std::string const& p,
cmMakefile* mf)
{
2021-11-20 13:41:27 +01:00
if (this->PlatformInGeneratorName) {
// This is an old-style generator name that contains the platform name.
// No explicit platform specification is supported, so pass it through
// to our base class implementation, which errors on non-empty platforms.
2015-04-27 22:25:09 +02:00
return this->cmGlobalVisualStudio7Generator::SetGeneratorPlatform(p, mf);
2016-07-09 11:21:54 +02:00
}
2021-11-20 13:41:27 +01:00
this->GeneratorPlatform = p;
// FIXME: Add CMAKE_GENERATOR_PLATFORM field to set the framework.
// For now, just report the generator's default, if any.
if (cm::optional<std::string> const& targetFrameworkVersion =
this->GetTargetFrameworkVersion()) {
mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_VERSION",
*targetFrameworkVersion);
}
if (cm::optional<std::string> const& targetFrameworkIdentifier =
this->GetTargetFrameworkIdentifier()) {
mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_IDENTIFIER",
*targetFrameworkIdentifier);
}
if (cm::optional<std::string> const& targetFrameworkTargetsVersion =
this->GetTargetFrameworkTargetsVersion()) {
mf->AddDefinition("CMAKE_VS_TARGET_FRAMEWORK_TARGETS_VERSION",
*targetFrameworkTargetsVersion);
}
// The generator name does not contain the platform name, and so supports
// explicit platform specification. We handled that above, so pass an
// empty platform name to our base class implementation so it does not error.
return this->cmGlobalVisualStudio7Generator::SetGeneratorPlatform("", mf);
}
cm::optional<std::string> const&
cmGlobalVisualStudio8Generator::GetTargetFrameworkVersion() const
{
return this->DefaultTargetFrameworkVersion;
}
cm::optional<std::string> const&
cmGlobalVisualStudio8Generator::GetTargetFrameworkIdentifier() const
{
return this->DefaultTargetFrameworkIdentifier;
}
cm::optional<std::string> const&
cmGlobalVisualStudio8Generator::GetTargetFrameworkTargetsVersion() const
{
return this->DefaultTargetFrameworkTargetsVersion;
2015-04-27 22:25:09 +02:00
}
2017-04-14 19:02:05 +02:00
std::string cmGlobalVisualStudio8Generator::GetGenerateStampList()
{
return "generate.stamp.list";
}
void cmGlobalVisualStudio8Generator::Configure()
{
this->cmGlobalVisualStudio7Generator::Configure();
}
2019-11-11 23:01:05 +01:00
bool cmGlobalVisualStudio8Generator::UseFolderProperty() const
2016-07-09 11:21:54 +02:00
{
return IsExpressEdition() ? false : cmGlobalGenerator::UseFolderProperty();
}
2014-08-03 19:52:23 +02:00
bool cmGlobalVisualStudio8Generator::AddCheckTarget()
{
// Add a special target on which all other targets depend that
// checks the build system and optionally re-runs CMake.
2018-08-09 18:06:22 +02:00
// Skip the target if no regeneration is to be done.
if (this->GlobalSettingIsOn("CMAKE_SUPPRESS_REGENERATION")) {
return false;
}
2020-08-30 11:54:41 +02:00
std::vector<std::unique_ptr<cmLocalGenerator>> const& generators =
this->LocalGenerators;
auto& lg =
cm::static_reference_cast<cmLocalVisualStudio7Generator>(generators[0]);
2022-03-29 21:10:50 +02:00
auto cc = cm::make_unique<cmCustomCommand>();
cc->SetCMP0116Status(cmPolicies::NEW);
cmTarget* tgt = lg.AddUtilityCommand(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false,
std::move(cc));
2020-08-30 11:54:41 +02:00
auto ptr = cm::make_unique<cmGeneratorTarget>(tgt, &lg);
auto gt = ptr.get();
lg.AddGeneratorTarget(std::move(ptr));
2015-11-17 17:22:37 +01:00
2010-11-13 01:00:53 +02:00
// Organize in the "predefined targets" folder:
//
2016-07-09 11:21:54 +02:00
if (this->UseFolderProperty()) {
2010-11-13 01:00:53 +02:00
tgt->SetProperty("FOLDER", this->GetPredefinedTargetsFolder());
2016-07-09 11:21:54 +02:00
}
2010-11-13 01:00:53 +02:00
2009-11-06 22:07:41 +02:00
// Create a list of all stamp files for this project.
std::vector<std::string> stamps;
2020-02-01 23:06:01 +01:00
std::string stampList = cmStrCat(
"CMakeFiles/", cmGlobalVisualStudio8Generator::GetGenerateStampList());
2009-11-06 22:07:41 +02:00
{
2016-07-09 11:21:54 +02:00
std::string stampListFile =
2020-02-01 23:06:01 +01:00
cmStrCat(generators[0]->GetMakefile()->GetCurrentBinaryDirectory(), '/',
stampList);
2016-07-09 11:21:54 +02:00
std::string stampFile;
cmGeneratedFileStream fout(stampListFile.c_str());
2020-08-30 11:54:41 +02:00
for (const auto& gi : generators) {
2020-02-01 23:06:01 +01:00
stampFile = cmStrCat(gi->GetMakefile()->GetCurrentBinaryDirectory(),
"/CMakeFiles/generate.stamp");
2016-07-09 11:21:54 +02:00
fout << stampFile << "\n";
stamps.push_back(stampFile);
2009-11-06 22:07:41 +02:00
}
}
2009-11-06 22:07:41 +02:00
// Add a custom rule to re-run CMake if any input files changed.
{
2020-08-30 11:54:41 +02:00
// The custom rule runs cmake so set UTF-8 pipes.
bool stdPipesUTF8 = true;
2016-07-09 11:21:54 +02:00
// Collect the input files used to generate all targets in this
// project.
std::vector<std::string> listFiles;
2020-08-30 11:54:41 +02:00
for (const auto& gen : generators) {
cm::append(listFiles, gen->GetMakefile()->GetListFiles());
}
2018-08-09 18:06:22 +02:00
// Add a custom prebuild target to run the VerifyGlobs script.
cmake* cm = this->GetCMakeInstance();
if (cm->DoWriteGlobVerifyTarget()) {
2020-02-01 23:06:01 +01:00
cmCustomCommandLines verifyCommandLines = cmMakeSingleCommandLine(
{ cmSystemTools::GetCMakeCommand(), "-P", cm->GetGlobVerifyScript() });
2018-08-09 18:06:22 +02:00
std::vector<std::string> byproducts;
byproducts.push_back(cm->GetGlobVerifyStamp());
2022-03-29 21:10:50 +02:00
cc = cm::make_unique<cmCustomCommand>();
cc->SetByproducts(byproducts);
cc->SetCommandLines(verifyCommandLines);
cc->SetComment("Checking File Globs");
cc->SetCMP0116Status(cmPolicies::NEW);
cc->SetStdPipesUTF8(stdPipesUTF8);
lg.AddCustomCommandToTarget(CMAKE_CHECK_BUILD_SYSTEM_TARGET,
2021-09-14 00:13:48 +02:00
cmCustomCommandType::PRE_BUILD,
2022-03-29 21:10:50 +02:00
std::move(cc));
2018-08-09 18:06:22 +02:00
// Ensure ZERO_CHECK always runs in Visual Studio using MSBuild,
// otherwise the prebuild command will not be run.
tgt->SetProperty("VS_GLOBAL_DisableFastUpToDateCheck", "true");
listFiles.push_back(cm->GetGlobVerifyStamp());
}
2016-07-09 11:21:54 +02:00
// Sort the list of input files and remove duplicates.
std::sort(listFiles.begin(), listFiles.end(), std::less<std::string>());
std::vector<std::string>::iterator new_end =
std::unique(listFiles.begin(), listFiles.end());
listFiles.erase(new_end, listFiles.end());
// Create a rule to re-run CMake.
2020-08-30 11:54:41 +02:00
std::string argS = cmStrCat("-S", lg.GetSourceDirectory());
std::string argB = cmStrCat("-B", lg.GetBinaryDirectory());
2019-11-11 23:01:05 +01:00
std::string const sln =
2020-08-30 11:54:41 +02:00
lg.GetBinaryDirectory() + "/" + lg.GetProjectName() + ".sln";
2020-02-01 23:06:01 +01:00
cmCustomCommandLines commandLines = cmMakeSingleCommandLine(
{ cmSystemTools::GetCMakeCommand(), argS, argB, "--check-stamp-list",
stampList, "--vs-solution-file", sln });
2016-07-09 11:21:54 +02:00
// Add the rule. Note that we cannot use the CMakeLists.txt
// file as the main dependency because it would get
// overwritten by the CreateVCProjBuildRule.
// (this could be avoided with per-target source files)
2022-03-29 21:10:50 +02:00
cc = cm::make_unique<cmCustomCommand>();
cc->SetOutputs(stamps);
cc->SetDepends(listFiles);
cc->SetCommandLines(commandLines);
cc->SetComment("Checking Build System");
cc->SetCMP0116Status(cmPolicies::NEW);
cc->SetEscapeOldStyle(false);
cc->SetStdPipesUTF8(stdPipesUTF8);
if (cmSourceFile* file =
lg.AddCustomCommandToOutput(std::move(cc), true)) {
2020-02-01 23:06:01 +01:00
gt->AddSource(file->ResolveFullPath());
2016-07-09 11:21:54 +02:00
} else {
2019-11-11 23:01:05 +01:00
cmSystemTools::Error("Error adding rule for " + stamps[0]);
2009-11-06 22:07:41 +02:00
}
}
2014-08-03 19:52:23 +02:00
return true;
2009-11-06 22:07:41 +02:00
}
2016-03-13 13:35:51 +01:00
void cmGlobalVisualStudio8Generator::AddExtraIDETargets()
2009-11-06 22:07:41 +02:00
{
2016-03-13 13:35:51 +01:00
cmGlobalVisualStudio7Generator::AddExtraIDETargets();
2016-07-09 11:21:54 +02:00
if (this->AddCheckTarget()) {
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i) {
2020-08-30 11:54:41 +02:00
const auto& tgts = this->LocalGenerators[i]->GetGeneratorTargets();
2016-03-13 13:35:51 +01:00
// All targets depend on the build-system check target.
2020-08-30 11:54:41 +02:00
for (const auto& ti : tgts) {
2018-04-23 21:13:27 +02:00
if (ti->GetName() != CMAKE_CHECK_BUILD_SYSTEM_TARGET) {
2020-08-30 11:54:41 +02:00
ti->Target->AddUtility(CMAKE_CHECK_BUILD_SYSTEM_TARGET, false);
2014-08-03 19:52:23 +02:00
}
}
}
2016-07-09 11:21:54 +02:00
}
}
2016-07-09 11:21:54 +02:00
void cmGlobalVisualStudio8Generator::WriteSolutionConfigurations(
std::ostream& fout, std::vector<std::string> const& configs)
{
fout << "\tGlobalSection(SolutionConfigurationPlatforms) = preSolution\n";
2018-04-23 21:13:27 +02:00
for (std::string const& i : configs) {
fout << "\t\t" << i << "|" << this->GetPlatformName() << " = " << i << "|"
<< this->GetPlatformName() << "\n";
2016-07-09 11:21:54 +02:00
}
fout << "\tEndGlobalSection\n";
}
2016-07-09 11:21:54 +02:00
void cmGlobalVisualStudio8Generator::WriteProjectConfigurations(
2017-07-20 19:35:53 +02:00
std::ostream& fout, const std::string& name, cmGeneratorTarget const& target,
2015-08-17 11:37:30 +02:00
std::vector<std::string> const& configs,
2013-03-16 19:13:01 +02:00
const std::set<std::string>& configsPartOfDefaultBuild,
2015-04-27 22:25:09 +02:00
std::string const& platformMapping)
{
std::string guid = this->GetGUID(name);
2018-04-23 21:13:27 +02:00
for (std::string const& i : configs) {
2017-09-21 19:03:52 +02:00
std::vector<std::string> mapConfig;
2018-04-23 21:13:27 +02:00
const char* dstConfig = i.c_str();
2017-09-21 19:03:52 +02:00
if (target.GetProperty("EXTERNAL_MSPROJECT")) {
2021-11-20 13:41:27 +01:00
if (cmValue m = target.GetProperty("MAP_IMPORTED_CONFIG_" +
cmSystemTools::UpperCase(i))) {
2020-08-30 11:54:41 +02:00
cmExpandList(*m, mapConfig);
2017-09-21 19:03:52 +02:00
if (!mapConfig.empty()) {
dstConfig = mapConfig[0].c_str();
}
}
2017-07-20 19:35:53 +02:00
}
2018-04-23 21:13:27 +02:00
fout << "\t\t{" << guid << "}." << i << "|" << this->GetPlatformName()
2017-07-20 19:35:53 +02:00
<< ".ActiveCfg = " << dstConfig << "|"
2016-07-09 11:21:54 +02:00
<< (!platformMapping.empty() ? platformMapping
: this->GetPlatformName())
2012-06-27 20:52:58 +03:00
<< "\n";
2016-07-09 11:21:54 +02:00
std::set<std::string>::const_iterator ci =
2018-04-23 21:13:27 +02:00
configsPartOfDefaultBuild.find(i);
2016-07-09 11:21:54 +02:00
if (!(ci == configsPartOfDefaultBuild.end())) {
2018-04-23 21:13:27 +02:00
fout << "\t\t{" << guid << "}." << i << "|" << this->GetPlatformName()
2017-07-20 19:35:53 +02:00
<< ".Build.0 = " << dstConfig << "|"
2016-07-09 11:21:54 +02:00
<< (!platformMapping.empty() ? platformMapping
: this->GetPlatformName())
2012-06-27 20:52:58 +03:00
<< "\n";
2016-07-09 11:21:54 +02:00
}
2019-11-11 23:01:05 +01:00
if (this->NeedsDeploy(target, dstConfig)) {
2018-04-23 21:13:27 +02:00
fout << "\t\t{" << guid << "}." << i << "|" << this->GetPlatformName()
2017-07-20 19:35:53 +02:00
<< ".Deploy.0 = " << dstConfig << "|"
2016-07-09 11:21:54 +02:00
<< (!platformMapping.empty() ? platformMapping
: this->GetPlatformName())
2013-03-16 19:13:01 +02:00
<< "\n";
}
2016-07-09 11:21:54 +02:00
}
}
2016-07-09 11:21:54 +02:00
bool cmGlobalVisualStudio8Generator::NeedsDeploy(
2019-11-11 23:01:05 +01:00
cmGeneratorTarget const& target, const char* config) const
2015-04-27 22:25:09 +02:00
{
2020-08-30 11:54:41 +02:00
cmStateEnums::TargetType const type = target.GetType();
if (type != cmStateEnums::EXECUTABLE &&
type != cmStateEnums::SHARED_LIBRARY) {
// deployment only valid on executables and shared libraries.
return false;
}
2019-11-11 23:01:05 +01:00
2021-11-20 13:41:27 +01:00
if (cmValue prop = target.GetProperty("VS_SOLUTION_DEPLOY")) {
2020-08-30 11:54:41 +02:00
// If set, it dictates behavior
return cmIsOn(
cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator, config));
2019-11-11 23:01:05 +01:00
}
2020-08-30 11:54:41 +02:00
// To be deprecated, disable deployment even if target supports it.
2021-11-20 13:41:27 +01:00
if (cmValue prop = target.GetProperty("VS_NO_SOLUTION_DEPLOY")) {
2020-08-30 11:54:41 +02:00
if (cmIsOn(cmGeneratorExpression::Evaluate(*prop, target.LocalGenerator,
config))) {
// If true, always disable deployment
return false;
}
}
// Legacy behavior, enabled deployment based on 'hard-coded' target
// platforms.
return this->TargetSystemSupportsDeployment();
2019-11-11 23:01:05 +01:00
}
bool cmGlobalVisualStudio8Generator::TargetSystemSupportsDeployment() const
{
return this->TargetsWindowsCE();
2015-04-27 22:25:09 +02:00
}
2011-01-16 11:35:12 +01:00
bool cmGlobalVisualStudio8Generator::ComputeTargetDepends()
{
// Skip over the cmGlobalVisualStudioGenerator implementation!
// We do not need the support that VS <= 7.1 needs.
return this->cmGlobalGenerator::ComputeTargetDepends();
}
void cmGlobalVisualStudio8Generator::WriteProjectDepends(
2020-08-30 11:54:41 +02:00
std::ostream& fout, const std::string&, const std::string&,
2016-07-09 11:21:54 +02:00
cmGeneratorTarget const* gt)
2011-01-16 11:35:12 +01:00
{
2015-11-17 17:22:37 +01:00
TargetDependSet const& unordered = this->GetTargetDirectDepends(gt);
OrderedTargetDependSet depends(unordered, std::string());
2018-04-23 21:13:27 +02:00
for (cmTargetDepend const& i : depends) {
2021-09-14 00:13:48 +02:00
if (!i->IsInBuildSystem()) {
2014-08-03 19:52:23 +02:00
continue;
2016-07-09 11:21:54 +02:00
}
2018-04-23 21:13:27 +02:00
std::string guid = this->GetGUID(i->GetName());
2011-01-16 11:35:12 +01:00
fout << "\t\t{" << guid << "} = {" << guid << "}\n";
2016-07-09 11:21:54 +02:00
}
2011-01-16 11:35:12 +01:00
}
2009-11-06 22:07:41 +02:00
bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
2016-07-09 11:21:54 +02:00
cmGeneratorTarget* target)
2009-11-06 22:07:41 +02:00
{
// Look for utility dependencies that magically link.
2020-08-30 11:54:41 +02:00
for (BT<std::pair<std::string, bool>> const& ui : target->GetUtilities()) {
2016-07-09 11:21:54 +02:00
if (cmGeneratorTarget* depTarget =
2020-08-30 11:54:41 +02:00
target->GetLocalGenerator()->FindGeneratorTargetToUse(
ui.Value.first)) {
2021-09-14 00:13:48 +02:00
if (depTarget->IsInBuildSystem() &&
2016-07-09 11:21:54 +02:00
depTarget->GetProperty("EXTERNAL_MSPROJECT")) {
2009-11-06 22:07:41 +02:00
// This utility dependency names an external .vcproj target.
// We use LinkLibraryDependencies="true" to link to it without
// predicting the .lib file location or name.
return true;
}
}
2016-07-09 11:21:54 +02:00
}
2009-11-06 22:07:41 +02:00
return false;
}
2016-07-09 11:21:54 +02:00
static cmVS7FlagTable cmVS8ExtraFlagTable[] = {
{ "CallingConvention", "Gd", "cdecl", "0", 0 },
{ "CallingConvention", "Gr", "fastcall", "1", 0 },
{ "CallingConvention", "Gz", "stdcall", "2", 0 },
{ "Detect64BitPortabilityProblems", "Wp64",
"Detect 64Bit Portability Problems", "true", 0 },
{ "ErrorReporting", "errorReport:prompt", "Report immediately", "1", 0 },
{ "ErrorReporting", "errorReport:queue", "Queue for next login", "2", 0 },
// Precompiled header and related options. Note that the
// UsePrecompiledHeader entries are marked as "Continue" so that the
// corresponding PrecompiledHeaderThrough entry can be found.
2016-07-09 11:21:54 +02:00
{ "UsePrecompiledHeader", "Yu", "Use Precompiled Header", "2",
cmVS7FlagTable::UserValueIgnored | cmVS7FlagTable::Continue },
{ "PrecompiledHeaderThrough", "Yu", "Precompiled Header Name", "",
cmVS7FlagTable::UserValueRequired },
2021-11-20 13:41:27 +01:00
{ "UsePrecompiledHeader", "Y-", "Don't use precompiled header", "0", 0 },
// There is no YX option in the VS8 IDE.
// Exception handling mode. If no entries match, it will be FALSE.
2016-07-09 11:21:54 +02:00
{ "ExceptionHandling", "GX", "enable c++ exceptions", "1", 0 },
{ "ExceptionHandling", "EHsc", "enable c++ exceptions", "1", 0 },
{ "ExceptionHandling", "EHa", "enable SEH exceptions", "2", 0 },
2016-07-09 11:21:54 +02:00
{ "EnablePREfast", "analyze", "", "true", 0 },
{ "EnablePREfast", "analyze-", "", "false", 0 },
2011-06-19 15:41:06 +03:00
// Language options
2016-07-09 11:21:54 +02:00
{ "TreatWChar_tAsBuiltInType", "Zc:wchar_t", "wchar_t is a built-in type",
"true", 0 },
{ "TreatWChar_tAsBuiltInType", "Zc:wchar_t-",
"wchar_t is not a built-in type", "false", 0 },
2011-06-19 15:41:06 +03:00
2019-11-11 23:01:05 +01:00
{ "", "", "", "", 0 }
};
2009-10-04 10:30:41 +03:00
cmIDEFlagTable const* cmGlobalVisualStudio8Generator::GetExtraFlagTableVS8()
{
return cmVS8ExtraFlagTable;
}