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

Bump CMake minimum to 2.8.12 #3094

Merged

Conversation

chuckatkins
Copy link
Contributor

Fixes #3040

@google-cla google-cla bot added the cla: yes label Oct 30, 2020
@derekmauro derekmauro self-assigned this Nov 2, 2020
@chuckatkins
Copy link
Contributor Author

From what I can tell the AppVeyor failure is unrelated.

@acxz
Copy link

acxz commented Dec 1, 2020

It has been a month since this PR has been submitted. @derekmauro can you take a quick look at it?

Copy link

@Robadob Robadob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would appreciate this being merged, Github actions Ubuntu image has updated it's preinstalled CMake version, causing our builds to fail because of this GTest issue.

@ybgunjal2000
Copy link

ybgunjal2000 commented Dec 4, 2020 via email

@@ -1,7 +1,7 @@
# Note: CMake support is community-based. The maintainers do not use CMake
# internally.

cmake_minimum_required(VERSION 2.8.8)
cmake_minimum_required(VERSION 2.8.12)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Adding ... to version rage to future proof code when using cmake > 3.18 that explicitly 
# deprecated 2.8.12 features
cmake_minimum_required(VERSION 2.8.12...)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version range was added in 3.12 to this command and the goal is to support 2.8.12 as a minimum.

Also, empty max range?

Copy link

@remyjette remyjette Dec 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the linked docs:

The optional <max> version, if specified, must be at least the <min> version and affects policy settings as described below. If the running version of CMake is older than 3.12, the extra ... dots will be seen as version component separators, resulting in the ...<max> part being ignored and preserving the pre-3.12 behavior of basing policies on <min>.

With that being said I don't think the ... makes much sense to add if no <max> is being specified.

@Be-ing
Copy link
Contributor

Be-ing commented Dec 14, 2020

Ping. Lots of projects are stumbling on this bug on CI.

@MichaelRWolf
Copy link

Over 2 months ago, the 1 failing check contains 2 failed tests due to timeout.

Given the number of projects that are stumbling due to this, could someone please rerun the checks, and if the timeout clears, please merge this PR? !!!

Thanks!

Copy link

@MichaelRWolf MichaelRWolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This minor change looks good to me. It will certainly quiet many deprecation warnings that have been clogging many screens for over 2 months. Anyone up for closing this by Christmas?

derekmauro added a commit that referenced this pull request Dec 28, 2020
@derekmauro derekmauro merged commit 389cb68 into google:master Dec 28, 2020
@Holzhaus
Copy link

Whohoo!

patrick96 added a commit to patrick96/polybar that referenced this pull request Dec 29, 2020
This fixes the cmake deprecation warnings

Ref: google/googletest#3094
@patrick96 patrick96 mentioned this pull request Dec 29, 2020
9 tasks
patrick96 added a commit to polybar/polybar that referenced this pull request Dec 29, 2020
This fixes the cmake deprecation warnings

Ref: google/googletest#3094
@mojca
Copy link

mojca commented Jan 8, 2021

Would you be willing to cherry-pick this change into the release branch (v1.10.x)? Thanks in advance.

@friendlyanon
Copy link

README says:

Post 1.10.x googletest will follow Abseil Live at Head philosophy

So I don't think there will be any more releases.
My solution is to just fix the download at the commit this was merged.

@Be-ing
Copy link
Contributor

Be-ing commented Jan 8, 2021

Post 1.10.x googletest will follow Abseil Live at Head philosophy

Considering this critical bug fix took 3 months after reporting it, took an outside contributor to fix this tiny change, was reviewed by outside contributors, and wasn't merged for another 2 months, all this despite many users speaking up, this doesn't inspire sufficient confidence to me for a "Live at Head" policy. On further thought, it kinda makes me want to look for alternatives to Google Test if this is how it is maintained...

@friendlyanon
Copy link

It's to be expected things end up this way with Google.

I can recommend doctest as an alternative.

@Be-ing
Copy link
Contributor

Be-ing commented Jan 8, 2021

Thanks for the perspective. Just because a large company puts resources into a project does not mean it is well maintained or will be in the future...

@mojca
Copy link

mojca commented Jan 8, 2021

I just started testing doctest a few days ago and it seems awesome indeed. The author fixed a bug I reported in less than a day despite not having access to the compiler in question.

The only thing I'm missing a bit at the moment is a proper test adapter for VS (but it works well in VS Code).

@lesomnus
Copy link

lesomnus commented Jan 13, 2021

doctest is good. but google/benchmark uses googletest.
Is there an alternative to google/benchmark?

@ghost ghost mentioned this pull request Mar 2, 2021
@LukeAI
Copy link

LukeAI commented May 21, 2021

Is there any suggestion as to when we might see this in a release?

@patrick96
Copy link

@LukeAI gtest doesn't have releases anymore. It's "live at head": https://github.com/google/googletest#live-at-head

eckel-formlabs added a commit to eckel-formlabs/libuavcan that referenced this pull request Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMake 3.19.0 throws deprecation warning in googletest/googletest/CMakeLists.txt:56