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

Download googlebenchmark if not found #1709

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Download googlebenchmark if not found #1709

merged 1 commit into from
Oct 17, 2020

Conversation

kitattyor
Copy link
Contributor

Currently building with -DSPDLOG_BUILD_ALL=1 fails if googlebench is not installed on the user system (because bench depends on googlebench). CMake FetchContent can be used to download and build it (also test it, but I disabled that option) so that the bench build doesn't fail. FetchContent is however only available on CMake 3.11+, hence the hacky version check.

Obviously, the cleaner solution is to bump CMake minimum to 3.11, but I didn't change that because #1624

@gabime gabime merged commit 90b33b1 into gabime:v1.x Oct 17, 2020
@gabime
Copy link
Owner

gabime commented Oct 17, 2020

Thanks. Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants