Le ven. 9 août 2019 à 06:44, Heng Zhou <[email protected]> a écrit :

> I am working on ubuntu 16.04, so the generator is the default "Unix
> Makefiles" which I did not specify. I don't think it is related to the lack
> of the parallel job number (I added 4 but with the same error). I just
> wanna confirm whether I wrote the syntax correctly. An example would
> suffice.
>

this sequence works for me on Debian 9 and CMake 3.13.2:

cd buildir
cmake -G /path/to/srcdir
cmake --build --parallel .


What kind or error do you get when you do that?



> On Fri, Aug 9, 2019 at 12:25 AM Eric Noulard <[email protected]>
> wrote:
>
>>
>>
>> Le ven. 9 août 2019 à 04:40, Heng Zhou <[email protected]> a écrit :
>>
>>> Hi,
>>>
>>> I want to build a project using all cores of the machine. After cmake
>>> .., I have tried
>>>
>>> cmake --build --parallel .
>>>
>>> and
>>>
>>> cmake --build . --parallel
>>>
>>> , but none of them works. So, what is the correct usage of --build and
>>> --parallel when using them together? I have read the documentation
>>> https://cmake.org/cmake/help/latest/manual/cmake.1.html#build-tool-mode
>>> but still could not figure out. Thanks for your help.
>>>
>>
>> Try providing a number of parallel job after the --parallel option.
>> Depending on the native build tool used you won't get automatic number of
>> parallel jobs.
>> Which CMake generator are you using?
>>
>>> --
>>>
>>> Powered by www.kitware.com
>>>
>>> Please keep messages on-topic and check the CMake FAQ at:
>>> http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>> Kitware offers various services to support the CMake community. For more
>>> information on each offering, please visit:
>>>
>>> CMake Support: http://cmake.org/cmake/help/support.html
>>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> https://cmake.org/mailman/listinfo/cmake
>>>
>>

-- 
Eric
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to