Skip to content

Commit 85a4292

Browse files
committed
Use FetchContent_Populate
Reason: With it the source can be included directly and it does not install the header files
1 parent a3ca54d commit 85a4292

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ if (NOT ${FastFloat_FOUND})
3232
GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
3333
GIT_TAG 1ea4f27b2aeee2859a1354a3c24cff52a116cad1
3434
)
35-
FetchContent_MakeAvailable(FastFloat)
35+
# FetchContent_MakeAvailable(FastFloat)
36+
FetchContent_Populate(FastFloat)
37+
add_subdirectory(${fastfloat_SOURCE_DIR} ${fastfloat_BINARY_DIR} EXCLUDE_FROM_ALL)
3638
endif()
3739

3840
set(GCC_COMPILE_FLAGS "-Wextra -Wall -Wfloat-equal -Wundef -Wshadow \

0 commit comments

Comments
 (0)