mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 19:45:11 +00:00
8b101d0556
* CLICKHOUSE-4493 Ask client password on tty * wip * clang-format * O_NOCTTY * remove O_NOCTTY * fix * static * readpassphrase * freebsd fix * fix * Better * fix style * Update ConnectionParameters.cpp * fixes * fix * fix
11 lines
611 B
CMake
11 lines
611 B
CMake
|
|
# wget https://raw.githubusercontent.com/openssh/openssh-portable/master/openbsd-compat/readpassphrase.c
|
|
# wget https://raw.githubusercontent.com/openssh/openssh-portable/master/openbsd-compat/readpassphrase.h
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-result -Wno-reserved-id-macro")
|
|
|
|
configure_file(includes.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/includes.h)
|
|
add_library(readpassphrase ${CMAKE_CURRENT_SOURCE_DIR}/readpassphrase.c)
|
|
# . to allow #include <readpassphrase.h>
|
|
target_include_directories(readpassphrase PUBLIC . ${CMAKE_CURRENT_BINARY_DIR}/include ${CMAKE_CURRENT_BINARY_DIR}/../include)
|