Skip to content

Commit

Permalink
Let system-installed fast_float be found (#3949)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarthGandalf authored Oct 14, 2024
1 parent f6760d3 commit 737851f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1053,13 +1053,13 @@ ENDIF()

include("cmake/Check-from_chars.cmake")
IF(NOT FROM_CHARS_WORKS)
CPMFindPackage(NAME fast_float
CPMFindPackage(NAME FastFloat
GIT_REPOSITORY https://github.com/fastfloat/fast_float
VERSION 6.1.0
EXCLUDE_FROM_ALL yes)
GET_TARGET_PROPERTY(fast_float_INCLUDE_DIRECTORIES
GET_TARGET_PROPERTY(FastFloat_INCLUDE_DIRECTORIES
FastFloat::fast_float INTERFACE_INCLUDE_DIRECTORIES)
INCLUDE_DIRECTORIES(${fast_float_INCLUDE_DIRECTORIES})
INCLUDE_DIRECTORIES(${FastFloat_INCLUDE_DIRECTORIES})
ADD_DEFINITIONS(-DUSE_FAST_FLOAT)
ENDIF()

Expand Down

0 comments on commit 737851f

Please sign in to comment.