Skip to content

Commit 2d2b42b

Browse files
committed
forked doctest
1 parent 73b27b7 commit 2d2b42b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.9)
1+
cmake_minimum_required(VERSION 3.10)
22

33
project(fast_float VERSION 8.0.2 LANGUAGES CXX)
44
set(FASTFLOAT_CXX_STANDARD 11 CACHE STRING "the C++ standard to use for fastfloat")

tests/CMakeLists.txt

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ option(FASTFLOAT_SUPPLEMENTAL_TESTS "Run supplemental tests" ON)
99

1010
if (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)
1413
else ()
1514
find_package(doctest REQUIRED)
1615
endif()
@@ -33,13 +32,9 @@ endif()
3332

3433
add_library(supplemental-data INTERFACE)
3534
if (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")
4439
endif()
4540

0 commit comments

Comments
 (0)