We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 564af6d + a7ed4e8 commit fe53e76Copy full SHA for fe53e76
tests/CMakeLists.txt
@@ -11,6 +11,8 @@ if (NOT SYSTEM_DOCTEST)
11
FetchContent_Declare(doctest
12
GIT_REPOSITORY https://github.com/onqtam/doctest.git
13
GIT_TAG v2.4.11)
14
+else ()
15
+ find_package(doctest REQUIRED)
16
endif()
17
if (FASTFLOAT_SUPPLEMENTAL_TESTS)
18
FetchContent_Declare(supplemental_test_files
@@ -59,6 +61,8 @@ function(fast_float_add_cpp_test TEST_NAME)
59
61
target_link_libraries(${TEST_NAME} PUBLIC fast_float supplemental-data)
60
62
if (NOT SYSTEM_DOCTEST)
63
target_link_libraries(${TEST_NAME} PUBLIC doctest)
64
+ else ()
65
+ target_link_libraries(${TEST_NAME} PUBLIC doctest::doctest)
66
67
endfunction(fast_float_add_cpp_test)
68
0 commit comments