mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 02:25:52 +00:00
Fixes: RIPD-1648 - use ExternalProject for snappy, lz4, SOCI, and sqlite3 - use FetchContent for NuDB - update SOCI from 79e222e3c2278e6108137a2d26d3689418b37544 to 3a1f602b3021b925d38828e3ff95f9e7f8887ff7 - update lz4 from c10863b98e1503af90616ae99725ecd120265dfb to v1.8.2 - update sqlite3 from 3.21 to 3.24 - update snappy from b02bfa754ebf27921d8da3bd2517eab445b84ff9 to 1.1.7 - update NuDB from 00adc6a4f16679a376f40c967f77dfa544c179c1 to 1.0.0
14 lines
647 B
CMake
14 lines
647 B
CMake
# This patches unsigned-types.h in the soci official sources
|
|
# so as to remove type range check exceptions that cause
|
|
# us trouble when using boost::optional to select int values
|
|
file (STRINGS include/soci/unsigned-types.h sourcecode)
|
|
foreach (line_ ${sourcecode})
|
|
if (line_ MATCHES "^[ \\t]+throw[ ]+soci_error[ ]*\\([ ]*\"Value outside of allowed.+$")
|
|
set (line_ "//${CMAKE_MATCH_0}")
|
|
endif ()
|
|
file (APPEND include/soci/unsigned-types.h.patched "${line_}\n")
|
|
endforeach ()
|
|
file (RENAME include/soci/unsigned-types.h include/soci/unsigned-types.h.orig)
|
|
file (RENAME include/soci/unsigned-types.h.patched include/soci/unsigned-types.h)
|
|
|