Skip to content
Snippets Groups Projects
Commit 631a9112 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Merge branch 'cmake-mysql'

parents 48c1b6ab fc8f805a
No related branches found
No related tags found
No related merge requests found
find_path(MYSQL_INCLUDE_DIR
NAMES mysql.h
PATH_SUFFIXES mysql
)
find_library(MYSQL_LIBRARIES
NAMES mysqlclient_r
)
if(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
set(MYSQL_FOUND ON)
endif(MYSQL_INCLUDE_DIR AND MYSQL_LIBRARIES)
if(MYSQL_FOUND)
if (NOT MYSQL_FIND_QUIETLY)
message(STATUS "Found MySQL includes: ${MYSQL_INCLUDE_DIR}/mysql.h")
message(STATUS "Found MySQL library: ${MYSQL_LIBRARIES}")
endif (NOT MYSQL_FIND_QUIETLY)
else(MYSQL_FOUND)
if (MYSQL_FIND_REQUIRED)
message(FATAL_ERROR "Could not find mysql development files")
endif (MYSQL_FIND_REQUIRED)
endif (MYSQL_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment