@@ -33,27 +33,27 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3333
3434include (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 ()
4646else ()
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 " )
5353endif ()
5454
5555if (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." )
5757endif ()
5858
5959if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32 ))
0 commit comments