-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add cmake options for enabling and disabling builds #79
Conversation
add cmake flags: - BUILD_EXAMPLES: whether to build the examples - BUILD_TESTS: whether to build the tests - BUILD_BENCHMARKS: whether to build the benchmarks these are all off by default.
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.
Hi there! Thank you for creating your first pull-request on the Graaf library :)
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.
Hi @kotaweav, thanks for the contribution! I think adding such options to our build system is a great addition.
I am however thinking whether we should create an "opt-out" system for these executables rather than an "opt-in". What do you think about introducing options such as SKIP_EXAMPLES
, SKIP_TESTS
, and SKIP_BENCHMARKS
which are all set to OFF
by default?
That way existing build systems would keep working without any change. It might also prevent confusion when a developer changes a class, successfully compiles the project locally, but the CI fails because some executable (which the developer did not explicitly opt-in for) cannot be compiled anymore.
Hi @kotaweav, do you still intend to work on this? |
Yup, sorry, I'm overseas for work at the moment. I'll do this as soon as I
get back!
…On Fri, Sep 8, 2023, 05:42 Bob Luppes ***@***.***> wrote:
Hi @kotaweav <https://github.com/kotaweav>, do you still intend to work
on this?
—
Reply to this email directly, view it on GitHub
<#79 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEWLUOJ7SIGRQL2UDBDLN3XZIWUBANCNFSM6AAAAAA3SV4LQA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hey! So, I'm back in town and wanted to revisit this. What are your thoughts instead of having |
Hi, welcome back :) My initial thought is that I would slightly prefer to express these flag as But I also do not have strong opinions, so I would be happy with both solutions. What do you think? |
I've certainly seen a lot of both XD OpenCV for example, goes the But sure, I'll go ahead with |
Codecov ReportAll modified lines are covered by tests ✅ see 12 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
Haha, I am not sure if we will ever reach some standardization of such build configurations 😄 But thanks for addressing this! |
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.
LGTM!
Congrats on the first contribution to Graaf 🎉
add cmake flags:
these are all off by default.