[CMake] 'NMake Makefiles' generate does not support parallel builds (/MP)?

Loaden loaden at gmail.com
Thu Sep 20 19:38:45 EDT 2012


Hello,Andreas!
Thanks for your comments. I am working in command line, use nmake.
So In here does not exist any Visual IDE stuff.

2012/9/20 Andreas Haferburg <ahaferburg at scopis.com>

> Hi Yuchen,
>
> we're using the same way to enable /MP, and it works for us. You didn't
> say exactly what doesn't work, so I'm left to guessing.
>
> Have you checked in Visual Studio if the flag is set (Project
> properties->C/C++->Command Line)? Maybe there's a conflicting option
> enabled? Or maybe you're changing the CMAKE_CXX_FLAGS variable too late,
> e.g. after calling add_executable()?
>
> Have you checked the value in Tools->Options->Projects and Solutions->VC++
> Project Settings->Maximum ...
>
> Best regards,
> Andreas
>
>
>
> On 20.09.2012 10:45, Loaden wrote:
>
>> Hi, there!
>> I am using Windows SDK 7.1 + nmake + CMake for building Windows
>> applications.
>> Follow these:
>> http://www.cmake.org/**pipermail/cmake/2009-April/**028668.html<http://www.cmake.org/pipermail/cmake/2009-April/028668.html>
>> http://msdn.microsoft.com/en-**us/library/bb385193.aspx<http://msdn.microsoft.com/en-us/library/bb385193.aspx>
>> I can't make /MP option works after this change in CMake's main
>> CMakeLists.txt
>>
>>     if (MSVC)
>>        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
>>        SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
>>        message(STATUS "CMAKE_CXX_FLAGS = ${CMAKE_CXX_FLAGS}")
>>        message(STATUS "CMAKE_C_FLAGS = ${CMAKE_C_FLAGS}")
>>     endif()
>>
>>
>> I know Jom which is a good choice for speed up compilation, but some
>> times, it will broken my builds.
>> See: http://qt-project.org/wiki/jom
>>
>> Am I lost some option? does there exist an valid way?
>> or, It's just a bug from CMake self?
>> Thanks a lot!
>>
>> --
>> Best Regards
>> Yuchen
>>
>>
>>
>> --
>>
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/**
>> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>>
>> Please keep messages on-topic and check the CMake FAQ at:
>> http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ>
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake>
>>
>>
>
> --
> Scopis GmbH
> Blücherstr. 22
> 10961 Berlin
> Germany
>
> E-Mail: ahaferburg at scopis.com
> Tel.: +49 (30) 39 82 05 98
> Fax.: +49 (30) 39 82 05 99
> Internet: www.scopis.com
>
> HRB 128315 Berlin Charlottenburg
> USt-IdNr.: DE272721463
> Steuernummer: 29/014/02034
> Geschäftsführer:  Bartosz Kosmecki
>
> Diese E-mail, einschließlich der Anhänge, ist ausschließlich für den oben
> genannten Adressaten bestimmt und beinhaltet vertrauliche und/oder
> gesetzlich geschützte Informationen. Jedem anderen Empfänger ist die
> Vervielfältigung, Weitergabe oder Veröffentlichung untersagt. Falls Sie
> diese Mitteilung irrtümlicherweise erhalten haben, bitten wir um sofortige
> Information an den Absender und Vernichtung der E-mail.
>
> This e-mail, including the attachments, is for the exclusive use of the
> above-named addresses and contains confidential information and/or
> information protected by law. Any other recipient is prohibited from
> duplicating, passing on to third parties, or publishing this information.
> If by error you are the recipient of this communication please inform the
> sender immediately and permanently delete this e-mail.
>



-- 
Best Regards
Yuchen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120921/72c9ac86/attachment-0001.htm>


More information about the CMake mailing list