Skip to content

Commit 2132bb6

Browse files
committed
..
1 parent 2e8e974 commit 2132bb6

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

benchmark/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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)

test/CMakeLists.txt

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

3434
include(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()
5755
if(NOT _cxx_std_flag)
5856
message(FATAL_ERROR "xtensor-blas needs a C++17-compliant compiler.")
5957
endif()
60-
]]
6158

6259
if(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)

xtensor-blasConfig.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()
2929
endif()
3030

0 commit comments

Comments
 (0)