philips-software / philips-software/amp-cucumber-cpp-runner
FetchContent usage requires CCR_FETCH_DEPS to resolve dependencies (not documented)
@daantimmer is already working on this.
Since May 19, 2026.
- Dominant language
- C++
- Stars
- 22
- Forks
- 7
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 4
Description
Hi,
I tried to use this project via FetchContent as described in the README, but encountered link errors due to missing external dependencies.
(I'm using ubuntu:24.04 docker container)
Specifically, when using FetchContent with default options, the build fails with errors like cannot find -lbase64 .
It appears that these dependencies (e.g., base64 and gherkin) are only added when the CMake option CCR_FETCH_DEPS is enabled.
Without this option, the corresponding targets are not defined, and CMake falls back to treating them as plain linker flags (e.g., -lbase64), which leads to linker errors.
Enabling the following before FetchContent_MakeAvailable resolves the issue:
set(CCR_FETCH_DEPS ON CACHE BOOL "")
With this option enabled, FetchContent successfully pulls in and builds all required dependencies.
It would be helpful if:
- The
CCR_FETCH_DEPSoption was documented in the README - Or dependencies were handled more transparently by default
- Or a minimal working FetchContent example was provided
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.