Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include Meson project with CMake FetchContent #384

Closed
junglie85 opened this issue Aug 26, 2021 · 2 comments
Closed

Include Meson project with CMake FetchContent #384

junglie85 opened this issue Aug 26, 2021 · 2 comments

Comments

@junglie85
Copy link

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)
@Snaipe
Copy link
Owner

Snaipe commented Nov 10, 2021

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

@MrAnno
Copy link
Collaborator

MrAnno commented Jan 4, 2023

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

@MrAnno MrAnno closed this as completed Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants