From 574df1adf18771a0ef1f94f4ab66fccaf4565f3c Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Mon, 19 Oct 2020 21:07:31 -0400 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 864353a..c0557e5 100644 --- a/README.md +++ b/README.md @@ -72,6 +72,19 @@ add_subdirectory(fast_float) target_link_libraries(myprogram PUBLIC fast_float) ``` +Or you may want to retrieve the dependency automatically if you have a sufficiently recent version of CMake (3.11 or better at least): + +```cmake +FetchContent_Declare( + fast_float + GIT_REPOSITORY https://github.com/lemire/fast_float.git + GIT_TAG origin/main + GIT_SHALLOW TRUE) + +FetchContent_MakeAvailable(fast_float) +target_link_libraries(myprogram PUBLIC fast_float) + +``` ## Requirements and Limitations