summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-01-26 17:57:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-01-26 18:51:49 (GMT)
commit24bcad5bace42f4ec8ce8d3bc5994581918f81c5 (patch)
tree2c438b9476b9a29aa70e40aa79a760ec9fb623e4 /Source
parentb44714a6429c48c2cabe53fce100bc20c6f8fbfc (diff)
downloadCMake-24bcad5bace42f4ec8ce8d3bc5994581918f81c5.zip
CMake-24bcad5bace42f4ec8ce8d3bc5994581918f81c5.tar.gz
CMake-24bcad5bace42f4ec8ce8d3bc5994581918f81c5.tar.bz2
VS: Honor compile options for ASM_NASM
The Ninja and Makefile generators honor `target_compile_options` and friends for ASM_NASM `.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 857b289..c88679c 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -3930,6 +3930,8 @@ bool cmVisualStudio10TargetGenerator::ComputeNasmOptions(
this->LocalGenerator->AddLanguageFlags(flags, this->GeneratorTarget,
cmBuildStep::Compile, "ASM_NASM",
configName);
+ this->LocalGenerator->AddCompileOptions(flags, this->GeneratorTarget,
+ "ASM_NASM", configName);
flags += " -f";
flags += this->Makefile->GetSafeDefinition("CMAKE_ASM_NASM_OBJECT_FORMAT");
nasmOptions.Parse(flags);