[build] Upgrade CMake build to googletest 1.11.0 (#3548)

This upgrade uncovered two issues:

ntcore wasn't forcing C++17, which caused a linker error with googletest
Matcher symbols:
```
undefined reference to `testing::Matcher<std::basic_string_view<char, std::char_traits<char> > >::Matcher(std::basic_string_view<char, std::char_traits<char> >)'
```

test_span.cpp wasn't including <algorithm> to use std::sort() and
std::is_sorted().
This commit is contained in:
Tyler Veness
2021-09-07 13:29:31 -07:00
committed by GitHub
parent 32d9949e4d
commit 1ea6549548
4 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
#include "wpi/span.h"
#include <algorithm>
#include <cassert>
#include <deque>
#include <initializer_list>