Skip to content

Commit c159e57

Browse files
committed
bump to C++17 for gtest
1 parent f25c262 commit c159e57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1212

1313
### Configure the compiler
1414

15-
# NOTE: Polyscope itself uses C++11, but the tests use C++14 because googletest requires it.
15+
# NOTE: Polyscope itself uses C++11, but the tests use C++17 because googletest requires it.
1616

1717
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
1818

1919
# using Clang (linux or apple) or GCC
2020
message("Using clang/gcc compiler flags")
21-
SET(BASE_CXX_FLAGS "-std=c++14 -Wall -Wextra -g3") # use C++14 for tests only
21+
SET(BASE_CXX_FLAGS "-std=c++17 -Wall -Wextra -g3") # use C++17 for tests only
2222
SET(DISABLED_WARNINGS " -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-deprecated-declarations -Wno-missing-braces -Wno-unused-private-field")
2323
SET(TRACE_INCLUDES " -H -Wno-error=unused-command-line-argument")
2424

0 commit comments

Comments
 (0)