From b44714a6429c48c2cabe53fce100bc20c6f8fbfc Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 26 Jan 2023 12:55:41 -0500 Subject: 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 --- Tests/VSMARMASM/CMakeLists.txt | 3 +++ Tests/VSMARMASM/foo.asm | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Tests/VSMARMASM') diff --git a/Tests/VSMARMASM/CMakeLists.txt b/Tests/VSMARMASM/CMakeLists.txt index 6d78e045b1..85740de18d 100644 --- a/Tests/VSMARMASM/CMakeLists.txt +++ b/Tests/VSMARMASM/CMakeLists.txt @@ -1,3 +1,6 @@ cmake_minimum_required(VERSION 3.25) # Enable CMP0141 project(VSMARMASM C ASM_MARMASM) add_executable(VSMARMASM main.c foo.asm) +target_compile_options(VSMARMASM PRIVATE + "$<$:SHELL:-predefine \"zero SETA 0\">" + ) diff --git a/Tests/VSMARMASM/foo.asm b/Tests/VSMARMASM/foo.asm index e5b2775635..44656ef873 100644 --- a/Tests/VSMARMASM/foo.asm +++ b/Tests/VSMARMASM/foo.asm @@ -3,7 +3,7 @@ EXPORT foo foo PROC - mov w0, #0 + mov w0, #zero ret ENDP -- cgit v1.2.1