cget icon indicating copy to clipboard operation
cget copied to clipboard

Is there a way to add "--parallel" when cmake build is done?

Open EricBackus opened this issue 4 years ago • 2 comments

Newer versions of CMake support a "--parallel" command-line option. I'd like to try using it from cget, but there doesn't appear to be a way for cget to send arbitrary strings to the CMake command-line. Could something like this be added?

EricBackus avatar Jul 17 '19 21:07 EricBackus

It looks like you could set the CMAKE_BUILD_PARALLEL_LEVEL env variable.

It might be good to extend cget to support this option.

pfultz2 avatar Jul 18 '19 00:07 pfultz2

You're right, the CMAKE_BUILD_PARALLEL_LEVEL env variable will probably meet this immediate need.

However, I think a generic way to add to the CMake command-line would still be very useful. For example, with my own packages, I would probably want to add --warn-uninitialized to help find possible problems in my CMakeLists.txt. Or, when building with MSVC, I might want to add "-- /verbosity:minimal" to cut down on the extremely verbose Visual Studio output. It would be best to have separate control over CMake generation vs. CMake build.

EricBackus avatar Jul 18 '19 03:07 EricBackus