Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
EricBackus opened this issue Jul 17, 2019 · 2 comments
Open

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

EricBackus opened this issue Jul 17, 2019 · 2 comments

Comments

@EricBackus
Copy link
Contributor

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?

@pfultz2
Copy link
Owner

pfultz2 commented Jul 18, 2019

It looks like you could set the CMAKE_BUILD_PARALLEL_LEVEL env variable.

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

@EricBackus
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants