Closed jakub-dudarewicz closed 1 year ago
@meekrosoft - would you be willing to merge this PR? This makes it way easier to include fff
in modern CMake projects.
It would be great if this was merged 👍
@jakub-dudarewicz, please update buildandtest
and anything relevant in README.md
.
@wulfgarpro, thanks for the review. I updated the build script and the README.
LGTM, merged.
The current cmake configuration in fff is lacking, because it adds its own version of gtest, which might collide with a version of gtest provded by the user of the fff library. By using
FetchContent
, we can resolve this collision.With this change one can
FetchContent
fff itself and override the gtest version used by it, to maintain consistency of dependencies used on all levels.