Skip to content
Snippets Groups Projects
Commit fc8f805a authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Add cmake/FindMySQL.cmake

parent 586e7424
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