[CMake] /MP[num_threads] not working in Cmake 3.0.0
Brad King
brad.king at kitware.com
Thu Jul 31 11:39:33 EDT 2014
On Thu, Jul 31, 2014 at 10:29 AM, Jaime Armendariz wrote:
> If I add "/MP4" for example in my${CMAKE_CXX_FLAGS_RELEASE}, cmake converts
> it to "/MP" that means "all cores available".
[snip]
> Cmake 3.0.0 and 2.8.12.2
> Windows 7 64 bits
> Visual Studio 2013 / Visual Studio 2010 SP1
With CMake 3.0.0 on VS 2013 I tried that and got:
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<ProcessorNumber>4</ProcessorNumber>
in the .vcxproj file. The compilation command-line then had "/MP4"
as expected.
-Brad
More information about the CMake
mailing list