ASM_NASM: Incorrect command line argument style when using MSVC
On Windows using MSVC, a simple project such as this one:
cmake_minimum_required(VERSION 3.16.0)
project(test VERSION 1.0.0 LANGUAGES C CXX ASM_NASM)
add_library(test STATIC test.asm)
fails to link because during the linking step link.exe
is called with GNU-style arguments (e.g. link
complains about not being able to find cr
)
Additionally, when not specifying C
or CXX
languages, building using Ninja fails because no linker is found.