LNK4098 use /NODEFAULTLIB:library

I try to use

ninja -j4 project

It happen this error. I search some comment and it say use vs2019 to setting cpp-docs/nodefaultlib-ignore-libraries.md at main · MicrosoftDocs/cpp-docs · GitHub
But I use the command line without IDE.

I direct input /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib
The filename, directory name, or volume label syntax is incorrect.

LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs;
use /NODEFAULTLIB:library comet.exe : fatal error LNK1169: one or more multiply defined symbols found 
ninja: build stopped: subcommand failed.

Those flags should be passed to target_linker_options() for the target in question. This sounds like a mixed release/debug environment which is tricky to get to work. I really recommend using RelWithDebInfo if possible (or Debug for the whole stack if it is really necessary).

So the /NODEFAULTLIB:library
doesn’t have command line

I don’t know what you’re asking here (if anything). It should be passed to the compiler, but CMake has no abstraction for it.