Skip to content

Commit 57f67a9

Browse files
committed
upgraded to C++17
1 parent 7f4023e commit 57f67a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3333

3434
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
3535
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion")
36-
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
36+
CHECK_CXX_COMPILER_FLAG("-std=c++17" HAS_CPP17_FLAG)
3737

38-
if (HAS_CPP14_FLAG)
39-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
38+
if (HAS_CPP17_FLAG)
39+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
4040
else()
41-
message(FATAL_ERROR "Unsupported compiler -- xtensor requires C++14 support!")
41+
message(FATAL_ERROR "Unsupported compiler -- xtensor requires C++17 support!")
4242
endif()
4343
endif()
4444

0 commit comments

Comments
 (0)