Cmake now fails when an option is enabled but a needed dependency is missing.
Details
To not fail too much, only the minimal set of options to use cucumber-cpp is enabled by default.
Test frameworks are off by default because every one has an external dependency. A warning is shown when no test framework is selected as one is needed for cucumber-cpp to be usable.
Motivation and Context
When a developer enables an option she want to use this feature. At the moment, the option can be enabled but when the dependency is not found that feature is not included.
With this change, cmake fails if a dependency for an enabled option is not found.
How Has This Been Tested?
Manually by configuring the project with cmake. Changes in the CI script also reflect the changes.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected).
This change possibly breaks some existing CI because no test framework is selected by default. The warning message shows what the problem is and how it can be solved.
Checklist:
[x] It is my own work, its copyright is implicitly assigned to the project and no substantial part of it has been copied from other sources (including Stack Overflow). In rare occasions this is acceptable, like in CMake modules where the original copyright information should be kept.
[x] I'm using the same code standards as the existing code (indentation, spacing, variable naming, ...).
[ ] I've added tests for my code.
[x] I have verified whether my change requires changes to the documentation
[x] My change either requires no documentation change or I've updated the documentation accordingly.
[x] My branch has been rebased to main, keeping only relevant commits.
Summary
Cmake now fails when an option is enabled but a needed dependency is missing.
Details
To not fail too much, only the minimal set of options to use cucumber-cpp is enabled by default.
Test frameworks are off by default because every one has an external dependency. A warning is shown when no test framework is selected as one is needed for cucumber-cpp to be usable.
Motivation and Context
When a developer enables an option she want to use this feature. At the moment, the option can be enabled but when the dependency is not found that feature is not included. With this change, cmake fails if a dependency for an enabled option is not found.
How Has This Been Tested?
Manually by configuring the project with cmake. Changes in the CI script also reflect the changes.
Types of changes
This change possibly breaks some existing CI because no test framework is selected by default. The warning message shows what the problem is and how it can be solved.
Checklist: