-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
update version of gtest to v1.15.2 (latest) and also the cmake config #1864
base: main
Are you sure you want to change the base?
update version of gtest to v1.15.2 (latest) and also the cmake config #1864
Conversation
…uration to avoid deprecation warnings
"error: use of the 'maybe_unused' attribute is a C++17 extension [clang-diagnostic-c++17-attribute-extensions]" looks like gtest moved to C++17 and we're using clang-tidy-14. so we can bump clang-tidy but i wonder if we also need to make sure when we build for tests we're building on c++17? |
From the previously shared page - https://opensource.google/documentation/policies/cplusplus-support#support_criteria_4 What would the earliest C++ standard you'd support? I guess technically it's 10 years since C++14. |
https://github.com/google/benchmark/blob/main/CMakeLists.txt#L141 is what we currently support. though if gtest has moved to require c++ 17 we can do that now based on the 10 year rule. i have a calendar reminder for the first week of January to flip to 17 then :) |
in #1867 i've updated to an interim version. maybe that version is enough to make the cmake change work? |
#1868 bumps partially and updates cmake. are you ok with me merging that or do you want to change this to match, or keep iterating on this to support c++17? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably fine?
This update removes the following warning:
Which was coming from cmake/GoogleTest.cmake.in.
It also updates googletest to the latest release version which removes subsequent cmake warnings.