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

Use cmake platform build tool #40

Merged
merged 2 commits into from
Apr 12, 2021
Merged

Use cmake platform build tool #40

merged 2 commits into from
Apr 12, 2021

Conversation

kammoh
Copy link
Contributor

@kammoh kammoh commented Apr 1, 2021

  • Don't rely on existence of "make". Use platform's default build tool.
  • Use parallel build to speed up compilation. Currently set to number of cores on the machine.

I had to update minimum CMake requirement to 3.12 to have the "parallel" option. Latest CMake version is 3.20, and 3.12+ has been shipped by default on most platforms for a while.
Also added the option(SBT ...) to suppress an "error" message for unused variable.

Edit:
Now tries to detect CMake version and will enable parallel flags only if supported.

- Don't rely on existance of "make"
- Use parallel build to speed up compilation
- Update minimum CMake version
- and enable parallel build options if version >= 3.12
@jodersky jodersky merged commit 57deef8 into sbt:master Apr 12, 2021
@jodersky
Copy link
Member

thanks

@kammoh kammoh deleted the cmake-build branch May 13, 2021 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants