mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
Update test/CMakeLists.txt to use C++23 for fixed-width float types
This commit is contained in:
parent
cbbbc75c88
commit
b0f4535781
@ -62,10 +62,10 @@ fast_float_add_cpp_test(example_comma_test)
|
||||
fast_float_add_cpp_test(basictest)
|
||||
option(FASTFLOAT_CONSTEXPR_TESTS "Require constexpr tests (build will fail if the compiler won't support it)" OFF)
|
||||
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)
|
||||
else()
|
||||
target_compile_features(basictest PRIVATE cxx_std_17)
|
||||
target_compile_features(basictest PRIVATE cxx_std_23)
|
||||
endif()
|
||||
|
||||
fast_float_add_cpp_test(long_test)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user