summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-26 17:55:41 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-26 17:56:25 (GMT)
commitb44714a6429c48c2cabe53fce100bc20c6f8fbfc (patch)
treeea4ac4cf359f41312e2d212a4efa86a9516fdbf0 /Source
parented09c0aecd7c68b3ad2af805fda1449f799a6eae (diff)
downloadCMake-b44714a6429c48c2cabe53fce100bc20c6f8fbfc.zip
CMake-b44714a6429c48c2cabe53fce100bc20c6f8fbfc.tar.gz
CMake-b44714a6429c48c2cabe53fce100bc20c6f8fbfc.tar.bz2
VS: Honor compile options for ASM_MARMASM
The Ninja and Makefile generators honor `target_compile_options` and friends for ASM_MARMMASM `.asm` sources. Teach the VS generator to honor them too for consistency. Issue: #24289
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 7b3f348..857b289 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3822,6 +3822,8 @@ bool cmVisualStudio10TargetGenerator::ComputeMarmasmOptions(
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
cmBuildStep::Compile, "ASM_MARMASM",
configName);
+ this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
+ "ASM_MARMASM", configName);
marmasmOptions.Parse(flags);