@@ -10,7 +10,7 @@ option(FASTFLOAT_SUPPLEMENTAL_TESTS "Run supplemental tests" ON)
10
10
if (NOT SYSTEM_DOCTEST )
11
11
FetchContent_Declare (doctest
12
12
GIT_REPOSITORY https://github.com/onqtam/doctest.git
13
- GIT_TAG v2.4.11 )
13
+ GIT_TAG v2.4.12 )
14
14
else ()
15
15
find_package (doctest REQUIRED )
16
16
endif ()
@@ -23,24 +23,15 @@ endif()
23
23
24
24
# FetchContent_MakeAvailable() was only introduced in 3.14
25
25
# https://cmake.org/cmake/help/v3.14/release/3.14.html#modules
26
- # FetchContent_MakeAvailable(doctest)
27
26
if (NOT SYSTEM_DOCTEST )
28
- FetchContent_GetProperties (doctest )
29
- if (NOT doctest_POPULATED )
30
- FetchContent_Populate (doctest )
31
- add_subdirectory (${doctest_SOURCE_DIR} ${doctest_BINARY_DIR} )
32
- endif ()
27
+ FetchContent_MakeAvailable (doctest )
33
28
endif ()
34
29
35
30
add_library (supplemental-data INTERFACE )
36
31
if (FASTFLOAT_SUPPLEMENTAL_TESTS )
37
- FetchContent_GetProperties (supplemental_test_files )
38
- if (NOT supplemental_test_files_POPULATED )
39
- message (STATUS "Supplemental tests enabled. Retrieving test files." )
40
- FetchContent_Populate (supplemental_test_files )
41
- message (STATUS "Supplemental test files retrieved." )
42
- add_subdirectory (${supplemental_test_files_SOURCE_DIR} ${supplemental_test_files_BINARY_DIR} )
43
- endif ()
32
+ message (STATUS "Supplemental tests enabled. Retrieving test files." )
33
+ FetchContent_MakeAvailable (supplemental_test_files )
34
+ message (STATUS "Supplemental test files retrieved." )
44
35
target_compile_definitions (supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DIR= "${supplemental_test_files_BINARY_DIR} /data" )
45
36
endif ()
46
37
@@ -82,7 +73,7 @@ endif()
82
73
if (FASTFLOAT_SUPPLEMENTAL_TESTS )
83
74
target_compile_definitions (basictest PRIVATE FASTFLOAT_SUPPLEMENTAL_TESTS )
84
75
endif ()
85
-
76
+ fast_float_add_cpp_test ( p2497 )
86
77
fast_float_add_cpp_test (long_test )
87
78
fast_float_add_cpp_test (powersoffive_hardround )
88
79
fast_float_add_cpp_test (string_test )
0 commit comments