Le ven. 9 août 2019 à 04:40, Heng Zhou <hzh...@clemson.edu> 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 >
-- 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