[CMake] /MP[num_threads] not working in Cmake 3.0.0
Jaime Armendariz
jaime.armendariz at aurorasat.es
Thu Jul 31 10:29:24 EDT 2014
Hello,
I would like to apply the switch "/MP[n]" for setting the number of
cores to be used in a compilation, however it does not behave
correctly.
If I add "/MP4" for example in my${CMAKE_CXX_FLAGS_RELEASE}, cmake
converts it to "/MP" that means "all cores available".
It's like it is not parsing the number but it correctly parses the /MP.
Tested with :
Cmake 3.0.0 and 2.8.12.2
Windows 7 64 bits
Visual Studio 2013 / Visual Studio 2010 SP1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140731/96dd5fb7/attachment-0001.html>
More information about the CMake
mailing list