Criterion icon indicating copy to clipboard operation
Criterion copied to clipboard

Include Meson project with CMake FetchContent

Open junglie85 opened this issue 2 years ago • 1 comments

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)

junglie85 avatar Aug 26 '21 16:08 junglie85

I would certainly expect this to work. Do you get an error building?

Snaipe avatar Nov 10 '21 20:11 Snaipe

I'm closing this due to inactivity. Please reopen this issue with the requested error logs.

MrAnno avatar Jan 04 '23 15:01 MrAnno