diff options
Diffstat (limited to 'databases/clickhouse/files/patch-cmake_find_krb5.cmake')
-rw-r--r-- | databases/clickhouse/files/patch-cmake_find_krb5.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/databases/clickhouse/files/patch-cmake_find_krb5.cmake b/databases/clickhouse/files/patch-cmake_find_krb5.cmake new file mode 100644 index 000000000000..c5f2f3935c70 --- /dev/null +++ b/databases/clickhouse/files/patch-cmake_find_krb5.cmake @@ -0,0 +1,11 @@ +--- cmake/find/krb5.cmake.orig 2022-01-22 20:43:13 UTC ++++ cmake/find/krb5.cmake +@@ -5,7 +5,7 @@ if (NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/krb5/ + set (ENABLE_KRB5 0) + endif () + +-if (NOT CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND NOT CMAKE_CROSSCOMPILING)) ++if (NOT CMAKE_SYSTEM_NAME MATCHES "Linux" AND NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" AND NOT (CMAKE_SYSTEM_NAME MATCHES "Darwin" AND NOT CMAKE_CROSSCOMPILING)) + message (WARNING "krb5 disabled in non-Linux and non-native-Darwin environments") + set (ENABLE_KRB5 0) + endif () |