CMake FetchContent with header-only project
I am trying to use FetchContent
to include a dependency that is a header-only C++ project. It does not need to be built. However, it contains a CMakeLists.txt file that builds its tests, and it is not doing it in a standard way. I would like to bypass the make step entirely, so as not to build the extraneous binary and not to see the warnings that it emits.
Official documentation for FetchContent doesn’t describe all its options
The official documentation for FetchContent looks more like an overview. I’m looking for a complete reference though. cmake --help-module FetchContent
produces the same text as the link above.
CMake FetchContent: How to not use the extracted cmake file now that FetchContent_Populate is deprecated?
After upgrading to CMake 3.30, this fine wrapper function …