Skip to content

Fix external dependency build in CMake#311

Open
kotaweav wants to merge 1 commit into
bobluppes:mainfrom
kotaweav:fix-external-dep-ref
Open

Fix external dependency build in CMake#311
kotaweav wants to merge 1 commit into
bobluppes:mainfrom
kotaweav:fix-external-dep-ref

Conversation

@kotaweav

Copy link
Copy Markdown
Contributor

Fixes bug introduced in 2a4715f

This fix allows Graaf to be used as an external dependency using CMake's FetchContent_Declare. With CMAKE_SOURCE_DIR, CMake will look for packaging/graaf.pc in the project using Graaf, rather than Graaf itself. PROJECT_SOURCE_DIR is used over
CMAKE_CURRENT_SOURCE_DIR to maintain consistency within the CMakeLists.txt.

This fix allows graaf to be used as an external dependency using
CMake's `FetchContent_Declare`. With `CMAKE_SOURCE_DIR`, CMake will
look for `packaging/graaf.pc` in the project using Graaf, rather than
Graaf itself. `PROJECT_SOURCE_DIR` is used over
`CMAKE_CURRENT_SOURCE_DIR` to maintain consistency within the
`CMakeLists.txt`.
@codecov

codecov Bot commented Apr 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.58%. Comparing base (2a4715f) to head (d66ed6f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #311   +/-   ##
=======================================
  Coverage   99.58%   99.58%           
=======================================
  Files          59       59           
  Lines        2621     2621           
  Branches      136      136           
=======================================
  Hits         2610     2610           
  Misses         11       11           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Marking this PR as stale. It will not be automatically closed.

Even though the maintainers of Graaf may not always have time to take a look in a timely fashion, your contributions are much appreciated.
Please allow some time for @bobluppes to take a closer look.

@github-actions github-actions Bot added the stale label May 29, 2026
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.

1 participant