-
Notifications
You must be signed in to change notification settings - Fork 42
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 Targets for FetchContent #217
Conversation
…m> wasn't included. I added the include to make the project build.
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 :)
I forgot to add a lable when creating the request and now It seems I can't do that afterwards. Sorry about that |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #217 +/- ##
=======================================
Coverage 99.57% 99.57%
=======================================
Files 56 56
Lines 2586 2586
Branches 135 135
=======================================
Hits 2575 2575
Misses 11 11 ☔ View full report in Codecov by Sentry. |
Update to newest version of graaf
…algorithm> wasn't included. I added the include to make the project build." This reverts commit 1662c21.
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 @FlorianXXIV, thanks for adding this, LGTM!
In the future I think we should add a test in the release CI to ensure that the project can be included using FetchContent. In general I would see this as a larger topic as the installation workflow for users could be streamlined 😅
This is a really nice step in that direction though! Please let me know if you continue to encounter issues.
I tried to use FetchContent for CMake to install graaflib but it didn't work, after some testing I decided to create a fork.
I made a new interface with add_library and added the include directory over target_include_directories, when using FetchContent with these modifications, including graaflib worked.
I also made sure I could build and test the project so that this didn't break stuff, and I got a build error telling me that the tarjan test used std::sort as an unknown target, I added an include for in tarjan.h to make the project build and the tests ran at 100%
I'm not really acquainted with how you properly write CMakeList files so if there are any issues feel free to tell me.