From 52791146ecf7df41818625def83fa5381be63e3a Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Thu, 26 Mar 2026 09:08:00 +0100 Subject: [PATCH] Publish the C++14 requirement through cmake interface --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f817b6b51..dbfba2464 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,13 +93,11 @@ target_include_directories(xsimd INTERFACE OPTION(ENABLE_XTL_COMPLEX "enables support for xcomplex defined in xtl" OFF) OPTION(BUILD_TESTS "xsimd test suite" OFF) +target_compile_features(xsimd INTERFACE cxx_std_14) if(ENABLE_XTL_COMPLEX) find_package(xtl 0.8.0 REQUIRED) - target_compile_features(xsimd INTERFACE cxx_std_14) target_compile_definitions(xsimd INTERFACE XSIMD_ENABLE_XTL_COMPLEX=1) target_link_libraries(xsimd INTERFACE xtl) -else() - target_compile_features(xsimd INTERFACE cxx_std_11) endif() if(BUILD_TESTS)