File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -34,27 +34,27 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3434
3535include (set_compiler_flag.cmake)
3636
37- if (CPP20 )
38- # User requested C++17 , but compiler might not oblige.
37+ if (CPP23 )
38+ # User requested C++20 , but compiler might not oblige.
3939 set_compiler_flag(
4040 _cxx_std_flag CXX
41- "-std=c++2a " # this should work with GNU, Intel, PGI
42- "/std:c++20 " # this should work with MSVC
41+ "-std=c++23 " # this should work with GNU, Intel, PGI
42+ "/std:c++23 " # this should work with MSVC
4343 )
4444 if (_cxx_std_flag)
45- message (STATUS "Building with C++20 " )
45+ message (STATUS "Building with C++23 " )
4646 endif ()
4747else ()
4848 set_compiler_flag(
4949 _cxx_std_flag CXX REQUIRED
50- "-std=c++17 " # this should work with GNU, Intel, PGI
51- "/std:c++17 " # this should work with MSVC
50+ "-std=c++20 " # this should work with GNU, Intel, PGI
51+ "/std:c++20 " # this should work with MSVC
5252 )
53- message (STATUS "Building with C++17 " )
53+ message (STATUS "Building with C++20 " )
5454endif ()
5555
5656if (NOT _cxx_std_flag)
57- message (FATAL_ERROR "xtensor needs a C++17 -compliant compiler." )
57+ message (FATAL_ERROR "xtensor needs a C++20 -compliant compiler." )
5858endif ()
5959
6060OPTION (XTENSOR_ENABLE_WERROR "Turn on -Werror" OFF )
You can’t perform that action at this time.
0 commit comments