-
Notifications
You must be signed in to change notification settings - Fork 0
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
Modernize cmake #68
Modernize cmake #68
Conversation
68ce025
to
84575b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks a lot!
Lots of great changes, I don't have a lot to complain about. :)
@@ -138,7 +138,7 @@ In order to compile with tests define `BUILD_TESTS=true` | |||
mkdir -p arbitration_graphs/build | |||
cd arbitration_graphs/build | |||
cmake -DBUILD_TESTS=true .. | |||
cmake --build . | |||
cmake --build . -j9 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 9 btw? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kind of arbitrary, but at least more than one.
A very rough suggestion was once to use #threads + 1
, nowadays 2 * #threads
seems to also work for many. Anyhow, it's not too crazy to assume a modern dev has >8 threads available (4 cores with hyperthreading).
Some CMake cleanup and refactoring, in preparation to add the #22 as subfolder project.
Based on Modern CMake book and other sources.