Update test/CMakeLists.txt to use C++23 for fixed-width float types

This commit is contained in:
MTahaK 2023-12-12 18:11:09 -05:00
parent cbbbc75c88
commit b0f4535781

View File

@ -62,10 +62,10 @@ fast_float_add_cpp_test(example_comma_test)
fast_float_add_cpp_test(basictest) fast_float_add_cpp_test(basictest)
option(FASTFLOAT_CONSTEXPR_TESTS "Require constexpr tests (build will fail if the compiler won't support it)" OFF) option(FASTFLOAT_CONSTEXPR_TESTS "Require constexpr tests (build will fail if the compiler won't support it)" OFF)
if (FASTFLOAT_CONSTEXPR_TESTS) if (FASTFLOAT_CONSTEXPR_TESTS)
target_compile_features(basictest PRIVATE cxx_std_20) target_compile_features(basictest PRIVATE cxx_std_23)
target_compile_definitions(basictest PRIVATE FASTFLOAT_CONSTEXPR_TESTS) target_compile_definitions(basictest PRIVATE FASTFLOAT_CONSTEXPR_TESTS)
else() else()
target_compile_features(basictest PRIVATE cxx_std_17) target_compile_features(basictest PRIVATE cxx_std_23)
endif() endif()
fast_float_add_cpp_test(long_test) fast_float_add_cpp_test(long_test)