Criterion
Criterion copied to clipboard
Include Meson project with CMake FetchContent
I'm trying to move to using the bleeding branch, which comes with Meson build system instead of CMake. Does anyone have any advice on how to add this as a dependency using FetchContent? I've tried the following, but no luck:
FetchContent_Declare(criterion
GIT_REPOSITORY https://github.com/Snaipe/Criterion.git
GIT_TAG bleeding
GIT_SUBMODULES_RECURSE TRUE
CONFIGURE_COMMAND "meson build"
BUILD_COMMAND "ninja -C build"
)
FetchContent_MakeAvailable(criterion)
I would certainly expect this to work. Do you get an error building?
I'm closing this due to inactivity. Please reopen this issue with the requested error logs.