You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently in build-systems.md the suggested CMake integrations are either via manual file download or ExternalProject.
The first is, well, manual and the second is heavyweight, cumbersome and downloads at build time (yikes!).
There is a much simpler way to integrate doctest using FetchContent.
Ah, my issue search skills are obviously pretty bad, thank you!
However, the approach suggested in #698 and implemented in #821 is still suboptimal for doctest unless one needs doctest_discover_tests(<target>) functionality.
It works but it clones the GitHub repo and perform CMake configure on it. The library is a single header and none of it is really necessary.
The approach above is bare-bones and faster - only a single header is downloaded and no configuration is performed at all.
Currently in build-systems.md the suggested CMake integrations are either via manual file download or
ExternalProject
.The first is, well, manual and the second is heavyweight, cumbersome and downloads at build time (yikes!).
There is a much simpler way to integrate doctest using FetchContent.
Something like this:
This downloads just the header and does it during configure, not build, time.
If you think this is reasonable to document in addition or instead of
ExternalProject
method happy to submit a PR.The text was updated successfully, but these errors were encountered: