diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 6d8701805..cd7bc445e 100755 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -573,7 +573,7 @@ if((MSVC_IDE OR XCODE OR GCC) AND ENABLE_ASSEMBLY) list(APPEND ASM_OBJS ${ASM}.${SUFFIX}) add_custom_command( OUTPUT ${ASM}.${SUFFIX} - COMMAND ${NASM_EXECUTABLE} ARGS ${NASM_FLAGS} ${ASM_SRC} -o ${ASM}.${SUFFIX} + COMMAND ${NASM_EXECUTABLE} ARGS ${NASM_FLAGS} -w-macro-params-legacy -w-pp-macro-params-legacy ${ASM_SRC} -o ${ASM}.${SUFFIX} DEPENDS ${ASM_SRC}) endforeach() endif()