-
Notifications
You must be signed in to change notification settings - Fork 309
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
s2loop_test: Build fails with recent versions of abseil #357
Comments
Please include the error you're getting. Is |
Yes. Abseil is built from source using the current LTS version (git tag 20240116.1)
|
Same commands to compile as #356 ? Which googletest? Does this one work with 1.14.0? |
Yes, same commands. Cmake actually fails with more recent versions of gtest. So this was build with 1.10.0. The error I get with 1.14.0 versions of test is (as far as I can remember, all recent versions show the same error, and 1.11.0 showed either this error when running cmake or the same error as with v1.10.0 when compiling):
|
What's around line 40 for you? I have:
What's your cmake version? I have 3.28.1. |
you need to pass -DGOOGLETEST_VERSION=1.14.0 in cmake command when build googletest and s2geometry also |
s2geometry/src/s2/s2loop_test.cc
Line 1146 in 7940c9f
S2 fails to build with recent versions of abseil at places where HasSubstr ist used. Replacing the string_view with a string works (as a workaround):
EXPECT_THAT(error.text(), testing::HasSubstr(std::string(snippet)));
The text was updated successfully, but these errors were encountered: