summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeASM_NASMInformation.cmake
diff options
context:
space:
mode:
authorWirtos_new <Wirtos.new@gmail.com>2021-09-28 12:34:29 (GMT)
committerBrad King <brad.king@kitware.com>2021-09-28 14:14:50 (GMT)
commit9b94f95bed62cfcef7061ce94052ff246a673a95 (patch)
treecc408197f666d52c3379c19b33447a082917ed0c /Modules/CMakeASM_NASMInformation.cmake
parent966d9b3967fcb054012f4b97373fa1433837d2d9 (diff)
downloadCMake-9b94f95bed62cfcef7061ce94052ff246a673a95.zip
CMake-9b94f95bed62cfcef7061ce94052ff246a673a95.tar.gz
CMake-9b94f95bed62cfcef7061ce94052ff246a673a95.tar.bz2
ASM_NASM: Pass preprocessor definitions to assembler
Add the `<DEFINES>` placeholder to `CMAKE_ASM_NASM_COMPILE_OBJECT`. Fixes: #22694
Diffstat (limited to 'Modules/CMakeASM_NASMInformation.cmake')
-rw-r--r--Modules/CMakeASM_NASMInformation.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeASM_NASMInformation.cmake b/Modules/CMakeASM_NASMInformation.cmake
index dad2750..a72575b 100644
--- a/Modules/CMakeASM_NASMInformation.cmake
+++ b/Modules/CMakeASM_NASMInformation.cmake
@@ -35,7 +35,7 @@ if(NOT CMAKE_ASM_NASM_OBJECT_FORMAT)
endif()
if(NOT CMAKE_ASM_NASM_COMPILE_OBJECT)
- set(CMAKE_ASM_NASM_COMPILE_OBJECT "<CMAKE_ASM_NASM_COMPILER> <INCLUDES> <FLAGS> -f ${CMAKE_ASM_NASM_OBJECT_FORMAT} -o <OBJECT> <SOURCE>")
+ set(CMAKE_ASM_NASM_COMPILE_OBJECT "<CMAKE_ASM_NASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -f ${CMAKE_ASM_NASM_OBJECT_FORMAT} -o <OBJECT> <SOURCE>")
endif()
if(CMAKE_ASM_NASM_COMPILER_ID STREQUAL "NASM")