How to build with the .res files not included in the objects

Hi
I am having issues linking a vey simple program in VS2022 due to .res files that are duplicated in libraries.
The linker gives an error LNK1241

/**********
resource file 'resource file' already specified

This error is generated if you run cvtres manually from the command line and if you then pass the resulting .obj file to the linker in addition to other .res files.

To specify multiple .res files, pass them all to the linker as .res files, not from within .obj files created by cvtres.
*******/

I generated the project with CMake_GUI. I will attach the make file.

How do I get OCCT to build with the .res files outside of the libraries?

Attachments: 
Dmitrii Pasukhin's picture

The issue is shown on OCCT buidling process or external lib?

Could you share the external lib setup?

OCCT do not have option to disable "rc"/"res" file generation from the box for windows,

Best regards, Dmitrii