Hello,
The following mimic command to be run during the Link stage is generated by CMake with VS generator:
cl.exe /Fe"out.exe" main.obj /Zi /WX- /MDd /nologo /link /machine:x64 kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
The arguments passed after the switch /link are expected to be passed to the linker.
Using target_link_options, the option will be added after the /link switch.
I would like to pass additional argument BEFORE the /link switch. Is there a way to do it in CMakeLists.txt?
Best Regards,
Amon