We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80f60f4 commit a7b9a75Copy full SHA for a7b9a75
CMakeLists.txt
@@ -21,7 +21,16 @@ include(GNUInstallDirs)
21
set(CMAKE_CXX_STANDARD 11)
22
set(CMAKE_CXX_STANDARD_REQUIRED True)
23
24
-find_package(FastFloat REQUIRED)
+find_package(FastFloat QUIET)
25
+if (NOT ${FastFloat_FOUND})
26
+ include(FetchContent)
27
+ FetchContent_Declare(
28
+ FastFloat
29
+ GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
30
+ GIT_TAG 1ea4f27b2aeee2859a1354a3c24cff52a116cad1
31
+ )
32
+ FetchContent_MakeAvailable(FastFloat)
33
+endif()
34
35
set(GCC_COMPILE_FLAGS "-Wextra -Wall -Wfloat-equal -Wundef -Wshadow \
36
-Wpointer-arith -Wcast-align -Wstrict-prototypes -Wwrite-strings \
0 commit comments