Add expected submodule

This commit is contained in:
Robert Schulze 2024-04-12 14:10:06 +00:00
parent c20444d430
commit bff31998f2
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
6 changed files with 10 additions and 0 deletions

3
.gitmodules vendored
View File

@ -369,3 +369,6 @@
[submodule "contrib/idna"]
path = contrib/idna
url = https://github.com/ada-url/idna.git
[submodule "contrib/expected"]
path = contrib/expected
url = https://github.com/TartanLlama/expected

View File

@ -222,6 +222,7 @@ else ()
endif ()
add_contrib (xxHash-cmake xxHash)
add_contrib (expected-cmake expected)
add_contrib (libbcrypt-cmake libbcrypt)

1
contrib/expected vendored Submodule

@ -0,0 +1 @@
Subproject commit 3f0ca7b19253129700a073abfa6d8638d9f7c80c

View File

@ -0,0 +1,3 @@
add_library(expected INTERFACE)
target_include_directories(expected SYSTEM BEFORE INTERFACE "${ClickHouse_SOURCE_DIR}/contrib/expected/include")
add_library(ch_contrib::expected ALIAS expected)

View File

@ -46,6 +46,7 @@ list (APPEND PUBLIC_LIBS
list (APPEND PRIVATE_LIBS
ch_contrib::zlib
ch_contrib::expected
boost::filesystem
divide_impl
ch_contrib::xxHash

View File

@ -16,6 +16,7 @@
#include <IO/WriteHelpers.h>
#include <boost/algorithm/string/case_conv.hpp>
#include <tl/expected.hpp>
namespace DB
{