mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
10 lines
423 B
CMake
10 lines
423 B
CMake
set (MYSQL_HINTS "/usr/local/opt/mysql/lib")
|
|
set (MYSQL_INCLUDE_HINTS "/usr/local/opt/mysql/include")
|
|
if (USE_STATIC_LIBRARIES)
|
|
find_library (STATIC_MYSQLCLIENT_LIB libmysqlclient.a HINTS ${MYSQL_HINTS})
|
|
else ()
|
|
find_library (MYSQLCLIENT_LIB mysqlclient HINTS ${MYSQL_HINTS})
|
|
endif ()
|
|
find_path (MYSQL_INCLUDE_DIR NAMES mysql.h PATH_SUFFIXES mysql HINTS ${MYSQL_INCLUDE_HINTS})
|
|
include_directories (${MYSQL_INCLUDE_DIR})
|