mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
Merge pull request #72104 from ClickHouse/add-jwt-cpp-submodule
Add jwt-cpp submodule
This commit is contained in:
commit
ed4d955df6
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,6 +1,9 @@
|
|||||||
# Please do not use 'branch = ...' tags with submodule entries. Such tags make updating submodules a
|
# Please do not use 'branch = ...' tags with submodule entries. Such tags make updating submodules a
|
||||||
# little bit more convenient but they do *not* specify the tracked submodule branch. Thus, they are
|
# little bit more convenient but they do *not* specify the tracked submodule branch. Thus, they are
|
||||||
# more confusing than useful.
|
# more confusing than useful.
|
||||||
|
[submodule "contrib/jwt-cpp"]
|
||||||
|
path = contrib/jwt-cpp
|
||||||
|
url = https://github.com/Thalhammer/jwt-cpp
|
||||||
[submodule "contrib/zstd"]
|
[submodule "contrib/zstd"]
|
||||||
path = contrib/zstd
|
path = contrib/zstd
|
||||||
url = https://github.com/facebook/zstd
|
url = https://github.com/facebook/zstd
|
||||||
|
2
contrib/CMakeLists.txt
vendored
2
contrib/CMakeLists.txt
vendored
@ -219,6 +219,8 @@ add_contrib (prometheus-protobufs-cmake prometheus-protobufs prometheus-protobuf
|
|||||||
|
|
||||||
add_contrib (numactl-cmake numactl)
|
add_contrib (numactl-cmake numactl)
|
||||||
|
|
||||||
|
add_contrib (jwt-cpp-cmake jwt-cpp)
|
||||||
|
|
||||||
# Put all targets defined here and in subdirectories under "contrib/<immediate-subdir>" folders in GUI-based IDEs.
|
# Put all targets defined here and in subdirectories under "contrib/<immediate-subdir>" folders in GUI-based IDEs.
|
||||||
# Some of third-party projects may override CMAKE_FOLDER or FOLDER property of their targets, so they would not appear
|
# Some of third-party projects may override CMAKE_FOLDER or FOLDER property of their targets, so they would not appear
|
||||||
# in "contrib/..." as originally planned, so we workaround this by fixing FOLDER properties of all targets manually,
|
# in "contrib/..." as originally planned, so we workaround this by fixing FOLDER properties of all targets manually,
|
||||||
|
1
contrib/jwt-cpp
vendored
Submodule
1
contrib/jwt-cpp
vendored
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit a6927cb8140858c34e05d1a954626b9849fbcdfc
|
23
contrib/jwt-cpp-cmake/CMakeLists.txt
Normal file
23
contrib/jwt-cpp-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
set(ENABLE_JWT_CPP_DEFAULT OFF)
|
||||||
|
if(ENABLE_LIBRARIES AND CLICKHOUSE_CLOUD)
|
||||||
|
set(ENABLE_JWT_CPP_DEFAULT ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_JWT_CPP "Enable jwt-cpp library" ${ENABLE_JWT_CPP_DEFAULT})
|
||||||
|
|
||||||
|
if (NOT ENABLE_JWT_CPP)
|
||||||
|
message(STATUS "Not using jwt-cpp")
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_JWT_CPP)
|
||||||
|
if(NOT TARGET OpenSSL::Crypto)
|
||||||
|
message (${RECONFIGURE_MESSAGE_LEVEL} "Can't use jwt-cpp without OpenSSL")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set (JWT_CPP_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/jwt-cpp/include")
|
||||||
|
|
||||||
|
add_library (_jwt-cpp INTERFACE)
|
||||||
|
target_include_directories(_jwt-cpp SYSTEM BEFORE INTERFACE ${JWT_CPP_INCLUDE_DIR})
|
||||||
|
add_library(ch_contrib::jwt-cpp ALIAS _jwt-cpp)
|
Loading…
Reference in New Issue
Block a user