mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 19:12:03 +00:00
0e91c47066
* Allow build with external double-conversion lz4 zstd re2 zookeeper * fix * fix * freebsd fixes * spaces * fix * fix * fix * wip * move * fix
17 lines
645 B
CMake
17 lines
645 B
CMake
set (OPENSSL_USE_STATIC_LIBS ${USE_STATIC_LIBRARIES})
|
|
if (APPLE)
|
|
set (OPENSSL_ROOT_DIR "/usr/local/opt/openssl")
|
|
endif ()
|
|
find_package (OpenSSL)
|
|
if (NOT OPENSSL_FOUND)
|
|
# Try to find manually.
|
|
set (OPENSSL_INCLUDE_DIR "/usr/local/opt/openssl/include")
|
|
set (OPENSSL_PATHS "/usr/local/opt/openssl/lib")
|
|
find_library (OPENSSL_SSL_LIBRARY ssl PATHS ${OPENSSL_PATHS})
|
|
find_library (OPENSSL_CRYPTO_LIBRARY crypto PATHS ${OPENSSL_PATHS})
|
|
set (OPENSSL_LIBRARIES ${OPENSSL_SSL_LIBRARY} ${OPENSSL_CRYPTO_LIBRARY})
|
|
endif ()
|
|
|
|
message (STATUS "Using openssl: ${OPENSSL_INCLUDE_DIR} : ${OPENSSL_LIBRARIES}")
|
|
include_directories (${OPENSSL_INCLUDE_DIR})
|