ClickHouse/cmake/find_libmysqlclient.cmake

10 lines
459 B
CMake
Raw Normal View History

set (MYSQL_LIB_PATHS "/usr/local/opt/mysql/lib" "/usr/local/lib/mysql/")
set (MYSQL_INCLUDE_PATHS "/usr/local/opt/mysql/include")
2016-12-06 16:51:34 +00:00
if (USE_STATIC_LIBRARIES)
find_library (STATIC_MYSQLCLIENT_LIB libmysqlclient.a PATHS ${MYSQL_LIB_PATHS})
2016-12-06 16:51:34 +00:00
else ()
find_library (MYSQLCLIENT_LIB mysqlclient PATHS ${MYSQL_LIB_PATHS})
2016-12-06 16:51:34 +00:00
endif ()
find_path (MYSQL_INCLUDE_DIR NAMES mysql.h PATH_SUFFIXES mysql PATHS ${MYSQL_INCLUDE_PATHS})
2016-12-06 16:51:34 +00:00
include_directories (${MYSQL_INCLUDE_DIR})