Skip to content

Commit 0c11271

Browse files
Require c++17 for xtl testing
1 parent 44808ff commit 0c11271

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU"
5454
# Users may override the c++ standard:
5555
if(NOT DEFINED CMAKE_CXX_STANDARD OR "${CMAKE_CXX_STANDARD}" STREQUAL "")
5656
if (ENABLE_XTL_COMPLEX)
57-
CHECK_CXX_COMPILER_FLAG("-std=c++14" HAS_CPP14_FLAG)
58-
if (NOT HAS_CPP14_FLAG)
59-
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++14 support when xtl complex support is enabled")
57+
CHECK_CXX_COMPILER_FLAG("-std=c++17" HAS_CPP17_FLAG)
58+
if (NOT HAS_CPP17_FLAG)
59+
message(FATAL_ERROR "Unsupported compiler -- xsimd requires C++17 support when xtl complex support is enabled")
6060
endif()
61-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
61+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
6262
else()
6363
CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
6464
if (NOT HAS_CPP11_FLAG)

0 commit comments

Comments
 (0)