Hi,
The /MP option causes the compiler to create one or more copies of itself, each in a separate process. As far as I'm concerned, this is based on each project, and this will not let all projects build in parallel. To do that you have to pass in -M[:num] or -maxcpucount (max cpu count) to msbuild.exe. For more details, I suggest you could refer to the Doc: https://learn.microsoft.com/zh-cn/visualstudio/msbuild/msbuild-command-line-reference?view=vs-2019&redirectedfrom=MSDN&viewFallbackFrom=vs-2015
I am wondering if there is a way to make projects with dependencies on each other compile in parallel.
If the two projects that depend on each other, are in the same solution and the dependencies between each other are clearly marked, then the cpp files can be compiled at the same time, but not linked at the same time. The linking must occur in order of how they depend on one another.
Best Regards,
Jeanine
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.