1
0
mirror of https://github.com/google/benchmark.git synced 2025-03-31 14:40:29 +08:00

bump standard to c++14

This commit is contained in:
Dominic Hamon 2024-06-07 15:03:07 +01:00
parent bff33e8874
commit 2b8ee74539
2 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,7 @@ licenses(["notice"])
COPTS = [
"-pedantic",
"-pedantic-errors",
"-std=c++11",
"-std=c++14",
"-Wall",
"-Wconversion",
"-Wextra",

View File

@ -138,11 +138,7 @@ if (BENCHMARK_BUILD_32_BITS)
add_required_cxx_compiler_flag(-m32)
endif()
if (MSVC OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
set(BENCHMARK_CXX_STANDARD 14)
else()
set(BENCHMARK_CXX_STANDARD 11)
endif()
set(BENCHMARK_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD ${BENCHMARK_CXX_STANDARD})
set(CMAKE_CXX_STANDARD_REQUIRED YES)