views:

1041

answers:

2

I have a Visual Studio 2008 C++ project that has support for using multiple CPUs/cores when compiling. In the VCPROJ file I see this:

<Tool
    Name="VCCLCompilerTool"
    AdditionalOptions="/MP"
    ...

I can't find where that was turned added via the IDE and I want to set up another project that uses all of my cores during compilation.

I found tons of references to the MSDN /MP page but that is for using the command line; I have yet to find any references to setting that with the IDE. How do I do that?

EDIT: To clarify, the two projects are completely separate and are not in the same VCPROJ file. I wanted to turn on support for multiple cores during the C++ compilation phase.

+1  A: 

Tools > Options > Projects and Solutions > Build and Run > maximum number of parallel project builds

Warren Young
Both my projects have "maximum number of parallel project builds" set to 2 (which is correct) but the original project shows the /MP switch and my new project doesn't. When I compile both projects, the original is definitely using multiple cores while the new one is not.
dwj
You will not switch on /MP build via that settings. This option will enable parallel builds of several projects in one solution, not several files in one project. This option suitable only for big solutions.
Kirill V. Lyadvinsky
+4  A: 
Kirill V. Lyadvinsky
This worked. As a test I jammed it into the VCPROJ directly. After seeing your post, I added it to the section you show above -- it's exactly the same thing.
dwj