Skip to content

Commit

Permalink
Add expected submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
rschu1ze committed Apr 12, 2024
1 parent c20444d commit bff3199
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ else ()
endif ()

add_contrib (xxHash-cmake xxHash)
add_contrib (expected-cmake expected)

add_contrib (libbcrypt-cmake libbcrypt)

Expand Down
1 change: 1 addition & 0 deletions contrib/expected
Submodule expected added at 3f0ca7
3 changes: 3 additions & 0 deletions contrib/expected-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
1 change: 1 addition & 0 deletions src/Functions/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Functions/parseDateTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <IO/WriteHelpers.h>
#include <boost/algorithm/string/case_conv.hpp>

#include <tl/expected.hpp>

namespace DB
{
Expand Down

0 comments on commit bff3199

Please sign in to comment.