mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
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().
16 lines
487 B
CMake
16 lines
487 B
CMake
cmake_minimum_required(VERSION 2.8.2)
|
|
|
|
project(googletest-download NONE)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # 1.11.0
|
|
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
|
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
TEST_COMMAND ""
|
|
)
|