summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-12 19:35:38 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-12 19:35:38 (GMT)
commit81f670fa833e54a91b1b17eabade3162f31582f0 (patch)
treecd2eeb252d8e1a9a6b7361bda70d9696c79ef81d /Source/cmVisualStudio10TargetGenerator.cxx
parente4c281e45196b3c3fa2f327476838ac77b76e838 (diff)
downloadCMake-81f670fa833e54a91b1b17eabade3162f31582f0.zip
CMake-81f670fa833e54a91b1b17eabade3162f31582f0.tar.gz
CMake-81f670fa833e54a91b1b17eabade3162f31582f0.tar.bz2
VS: Honor compile options for MASM
The Ninja and Makefile generators honor `target_compile_options` and friends for MASM `.asm` sources. Teach the VS generator to honor them too for consistency. Fixes: #24289
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 1f45ce3..9734414 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3867,6 +3867,8 @@ bool cmVisualStudio10TargetGenerator::ComputeMasmOptions(
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
cmBuildStep::Compile, "ASM_MASM",
configName);
+ this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
+ "ASM_MASM", configName);
masmOptions.Parse(flags);