File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3333
3434if (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 ()
4343endif ()
4444
You can’t perform that action at this time.
0 commit comments