early-access version 2853
This commit is contained in:
15
externals/vcpkg/ports/clickhouse-cpp/fix-error-C4996.patch
vendored
Executable file
15
externals/vcpkg/ports/clickhouse-cpp/fix-error-C4996.patch
vendored
Executable file
@@ -0,0 +1,15 @@
|
||||
diff --git a/clickhouse/CMakeLists.txt b/clickhouse/CMakeLists.txt
|
||||
index 7e10ffd..cbbffdc 100644
|
||||
--- a/clickhouse/CMakeLists.txt
|
||||
+++ b/clickhouse/CMakeLists.txt
|
||||
@@ -31,6 +31,10 @@ SET ( clickhouse-cpp-lib-src
|
||||
query.cpp
|
||||
)
|
||||
|
||||
+if (MSVC)
|
||||
+ add_compile_options(/wd4996)
|
||||
+endif()
|
||||
+
|
||||
ADD_LIBRARY (clickhouse-cpp-lib SHARED ${clickhouse-cpp-lib-src})
|
||||
SET_TARGET_PROPERTIES(clickhouse-cpp-lib PROPERTIES LINKER_LANGUAGE CXX)
|
||||
TARGET_LINK_LIBRARIES (clickhouse-cpp-lib
|
13
externals/vcpkg/ports/clickhouse-cpp/fix-error-c2668.patch
vendored
Executable file
13
externals/vcpkg/ports/clickhouse-cpp/fix-error-c2668.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/clickhouse/columns/decimal.cpp b/clickhouse/columns/decimal.cpp
|
||||
index 7334bb1..41d43b6 100644
|
||||
--- a/clickhouse/columns/decimal.cpp
|
||||
+++ b/clickhouse/columns/decimal.cpp
|
||||
@@ -27,7 +27,7 @@ inline bool mulOverflow(const Int128 & l, const T & r, Int128 * result)
|
||||
|
||||
#else
|
||||
template <typename T>
|
||||
-inline bool getSignBit(const T & v)
|
||||
+inline bool getSignBit(const T & (long double v))
|
||||
{
|
||||
return std::signbit(v);
|
||||
}
|
24
externals/vcpkg/ports/clickhouse-cpp/portfile.cmake
vendored
Executable file
24
externals/vcpkg/ports/clickhouse-cpp/portfile.cmake
vendored
Executable file
@@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ClickHouse/clickhouse-cpp
|
||||
REF 1415b5936a2ac2f084850b09057e05fb5798b2f1 #v1.5.0
|
||||
SHA512 222b31b16744af64f0a874ec956568adcecb553e43f8d4a2d16c00d55b31015d917a4dc7bb30d5430a894459b1be5e05b292e2d0918bf6f5609046a60539f80f
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-error-c2668.patch
|
||||
fix-error-C4996.patch #fix x64-uwp error:std::uncaught_exception() is deprecated in C++17
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
18
externals/vcpkg/ports/clickhouse-cpp/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/clickhouse-cpp/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "clickhouse-cpp",
|
||||
"version": "1.5.0",
|
||||
"description": "C++ client for Yandex ClickHouse",
|
||||
"homepage": "https://github.com/ClickHouse/clickhouse-cpp",
|
||||
"dependencies": [
|
||||
"cityhash",
|
||||
"lz4",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user