Try selecting the individual file(s) that have #import in Solution Explorer and changing the /MP option for just those files.
Multi-processor Compilation and #import directive
I've just built a new dev box, which has a 12 core processor. I understand that it's possible to tell the compiler to use multi-processors on the C++/General page.
However, #import is not supported with this option and generates C2813 errors. I've read somewhere that it's possible to have these files compiled with a single processor whilst the remaining files, which don't contain #import, benefit from the multiprocessor compilation.
In the Visual Studio 2019 Property Pages for a C++ project, how do you specify that certain source files (the ones that contain #import...) are compiled with /MP1 while everything else is compiled with /MP?
Or can this only be achieved outside of the GUI (and please excuse my ignorance)... how?
TIA
Pete