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).
vs have the toutrial to close or open the /NODEFAULTLIB:library
But it use the vs interface.
So /NODEFAULTLIB:library
Does it has the command line to open it or close