Skip to content

Commit e04b7b3

Browse files
committed
Upgraded to c++17
1 parent e224abe commit e04b7b3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/CMakeLists.txt

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

3434
include(set_compiler_flag.cmake)
3535

36-
if(CPP17)
37-
# User requested C++17, but compiler might not oblige.
36+
if(CPP20)
37+
# User requested C++20, but compiler might not oblige.
3838
set_compiler_flag(
3939
_cxx_std_flag CXX
40-
"-std=c++17" # this should work with GNU, Intel, PGI
41-
"/std:c++17" # this should work with MSVC
40+
"-std=c++20" # this should work with GNU, Intel, PGI
41+
"/std:c++20" # this should work with MSVC
4242
)
4343
if(_cxx_std_flag)
44-
message(STATUS "Building with C++17")
44+
message(STATUS "Building with C++20")
4545
endif()
4646
else()
4747
set_compiler_flag(
4848
_cxx_std_flag CXX REQUIRED
49-
"-std=c++14" # this should work with GNU, Intel, PGI
50-
"/std:c++14" # this should work with MSVC
49+
"-std=c++17" # this should work with GNU, Intel, PGI
50+
"/std:c++17" # this should work with MSVC
5151
)
52-
message(STATUS "Building with C++14")
52+
message(STATUS "Building with C++17")
5353
endif()
5454

5555
if(NOT _cxx_std_flag)
56-
message(FATAL_ERROR "xtensor-blas needs a C++14-compliant compiler.")
56+
message(FATAL_ERROR "xtensor-blas needs a C++17-compliant compiler.")
5757
endif()
5858

5959
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32))

0 commit comments

Comments
 (0)