File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.9 )
1+ cmake_minimum_required (VERSION 3.10 )
22
33project (fast_float VERSION 8.0.2 LANGUAGES CXX)
44set (FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat" )
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ option(FASTFLOAT_SUPPLEMENTAL_TESTS "Run supplemental tests" ON)
99
1010if (NOT SYSTEM_DOCTEST)
1111 FetchContent_Declare(doctest
12- GIT_REPOSITORY https://github.com/onqtam/doctest.git
13- GIT_TAG v2.4.11)
12+ GIT_REPOSITORY https://github.com/lemire/doctest.git)
1413else ()
1514 find_package (doctest REQUIRED)
1615endif ()
@@ -33,13 +32,9 @@ endif()
3332
3433add_library (supplemental-data INTERFACE )
3534if (FASTFLOAT_SUPPLEMENTAL_TESTS)
36- FetchContent_GetProperties(supplemental_test_files)
37- if (NOT supplemental_test_files_POPULATED)
38- message (STATUS "Supplemental tests enabled. Retrieving test files." )
39- FetchContent_Populate(supplemental_test_files)
40- message (STATUS "Supplemental test files retrieved." )
41- add_subdirectory (${supplemental_test_files_SOURCE_DIR} ${supplemental_test_files_BINARY_DIR} )
42- endif ()
35+ message (STATUS "Supplemental tests enabled. Retrieving test files." )
36+ FetchContent_MakeAvailable(supplemental_test_files)
37+ message (STATUS "Supplemental test files retrieved." )
4338 target_compile_definitions (supplemental-data INTERFACE SUPPLEMENTAL_TEST_DATA_DIR="${supplemental_test_files_BINARY_DIR} /data" )
4439endif ()
4540
You can’t perform that action at this time.
0 commit comments