Skip to content

Commit f2cca24

Browse files
Publish the C++14 requirement through cmake interface
1 parent 4050d94 commit f2cca24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,11 @@ target_include_directories(xsimd INTERFACE
9393
OPTION(ENABLE_XTL_COMPLEX "enables support for xcomplex defined in xtl" OFF)
9494
OPTION(BUILD_TESTS "xsimd test suite" OFF)
9595

96+
target_compile_features(xsimd INTERFACE cxx_std_14)
9697
if(ENABLE_XTL_COMPLEX)
9798
find_package(xtl 0.8.0 REQUIRED)
98-
target_compile_features(xsimd INTERFACE cxx_std_14)
9999
target_compile_definitions(xsimd INTERFACE XSIMD_ENABLE_XTL_COMPLEX=1)
100100
target_link_libraries(xsimd INTERFACE xtl)
101-
else()
102-
target_compile_features(xsimd INTERFACE cxx_std_11)
103101
endif()
104102

105103
if(BUILD_TESTS)

0 commit comments

Comments
 (0)