Bug asm in lib on windows with ninja
CMAKE_VERSION=3.20.2 ninja --version 1.10.2
I ran into a problem - if I want to create a library based on an asm file for Windows under ninja.
add_library(asm_lib file.asm)
I get this error
FAILED: asm_lib.lib
cmd.exe /C "cd . && C:\PROGRA~2\MICROS~2\2019\COMMUN~1\VC\Tools\MSVC\1429~1.300\bin\Hostx64\x64\lib.exe cr asm_lib.lib /machine:x64 CMakeFiles\____file.asm.obj && cd ."
Microsoft (R) Library Manager Version 14.29.30040.0
Copyright (C) Microsoft Corporation. All rights reserved.
LINK : fatal error LNK1181: cannot open input file 'cr'
as far as I understand, 'cr' is a flag and it is for bin/ar under Linux and not for a lib under Windows