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

cmake + all cpu cores #80

Open
KarelWintersky opened this issue Jan 14, 2025 · 1 comment
Open

cmake + all cpu cores #80

KarelWintersky opened this issue Jan 14, 2025 · 1 comment

Comments

@KarelWintersky
Copy link

KarelWintersky commented Jan 14, 2025

cmake --build . -j$(nproc --all)

will build release much faster

@magiblot
Copy link
Owner

Hi @KarelWintersky!

Yes, that's right. I guess you are referring to the sample code in the README? However, this argument is not portable. For example, it won't work on Windows if you are using the classic command prompt (since there is no nproc) or if MSBuild is being used (since CMake doesn't support -j for it).

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