summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-12-15 16:53:40 (GMT)
committerBrad King <brad.king@kitware.com>2022-12-15 16:53:40 (GMT)
commita9bd1e34ef220c5467111dbe8703b39e85aa1f14 (patch)
tree466ca55f80f4005ca856d7d7567dd7c9c00c8c1b /Source
parent98ba122a30221d7bbbf1c2184982606e1b6e8d9d (diff)
downloadCMake-a9bd1e34ef220c5467111dbe8703b39e85aa1f14.zip
CMake-a9bd1e34ef220c5467111dbe8703b39e85aa1f14.tar.gz
CMake-a9bd1e34ef220c5467111dbe8703b39e85aa1f14.tar.bz2
VS: Do not enable ASM_MASM debug information unless requested
MSBuild enables debug information with MASM by default, but for us that is not consistent with behavior on other generators.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 4cfb561..8882c45 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3769,6 +3769,10 @@ bool cmVisualStudio10TargetGenerator::ComputeMasmOptions(
this->LocalGenerator, Options::MasmCompiler, gg->GetMasmFlagTable());
Options& masmOptions = *pOptions;
+ // MSBuild enables debug information by default.
+ // Disable it explicitly unless a flag parsed below re-enables it.
+ masmOptions.AddFlag("GenerateDebugInformation", "false");
+
std::string flags;
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
cmBuildStep::Compile, "ASM_MASM",