File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed
Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,7 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
2828 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native" )
2929 endif ()
3030 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-parameter -Wextra -Wreorder" )
31- CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
32-
33- if (HAS_CPP14_FLAG)
34- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )
35- else ()
36- message (FATAL_ERROR "Unsupported compiler -- xtensor requires C++14 support!" )
37- endif ()
31+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17" )
3832
3933 # Enable link time optimization and set the default symbol
4034 # visibility to hidden (very important to obtain small binaries)
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE)
3333
3434include (set_compiler_flag.cmake)
3535
36- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17" )
37-
38- #[[if(CPP20)
36+ if (CPP20)
3937 # User requested C++20, but compiler might not oblige.
4038 set_compiler_flag(
4139 _cxx_std_flag CXX
@@ -57,7 +55,6 @@ endif()
5755if (NOT _cxx_std_flag)
5856 message (FATAL_ERROR "xtensor-blas needs a C++17-compliant compiler." )
5957endif ()
60- ]]
6158
6259if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND NOT WIN32 ))
6360 CHECK_CXX_COMPILER_FLAG(-march=native arch_native_supported)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if(NOT TARGET @PROJECT_NAME@)
2424 find_dependency(LAPACK REQUIRED)
2525 target_link_libraries (xtensor-blas INTERFACE ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES} )
2626 if (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.8)
27- target_compile_features (xtensor-blas INTERFACE cxx_std_14 )
27+ target_compile_features (xtensor-blas INTERFACE cxx_std_17 )
2828 endif ()
2929endif ()
3030
You can’t perform that action at this time.
0 commit comments