mirror of
https://github.com/ultrajson/ultrajson.git
synced 2024-09-20 11:11:50 +02:00
eb7d894f22
To fix issues with floating-point precision we've made use of Google's double-conversion lib to handle conversions of doubles to and from strings. In addition to fixing our precision problems this will improve double encoding by 4-5x. Decoding is however slightly slower according to the benchmarks - but accurate at least. This change removes the double_precision encoding option and the precise_float decoding option.
17 lines
641 B
CMake
17 lines
641 B
CMake
# - Config file for the double-conversion package
|
|
# It defines the following variables
|
|
# double-conversion_INCLUDE_DIRS
|
|
# double-conversion_LIBRARIES
|
|
|
|
get_filename_component(double-conversion_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
if(EXISTS "${double-conversion_CMAKE_DIR}/CMakeCache.txt")
|
|
include("${double-conversion_CMAKE_DIR}/double-conversionBuildTreeSettings.cmake")
|
|
else()
|
|
set(double-conversion_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@/double-conversion")
|
|
endif()
|
|
|
|
include("@CMAKE_INSTALL_FULL_LIBDIR@/cmake/double-conversion/double-conversionLibraryDepends.cmake")
|
|
|
|
set(double-conversion_LIBRARIES double-conversion)
|