-
Notifications
You must be signed in to change notification settings - Fork 1
/
FindMySQL.cmake
27 lines (24 loc) · 1.07 KB
/
FindMySQL.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include(CommonFind)
common_find_package(
NAME MySQL
SUFFIXES mysql
LIBRARIES mysqlclient
HEADER mysql_version.h
PKG_CONFIG_MODULE_NAME mysqlclient
CONFIG_EXECUTABLE mysql_config
CONFIG_EXECUTABLE_LIBRARIES_ARGUMENTS "--variable=pkglibdir"
CONFIG_EXECUTABLE_INCLUDE_ARGUMENTS "--variable=pkgincludedir"
VERSION_REGEXPES "#[ \t]*define[ \t]+MYSQL_VERSION_ID[ \t]+([0-9]+)"
)
if(0)
message("MySQL_FIND_VERSION = ${MySQL_FIND_VERSION}")
message("MySQL_FIND_VERSION_MAJOR = ${MySQL_FIND_VERSION_MAJOR}")
message("MySQL_FIND_VERSION_MINOR = ${MySQL_FIND_VERSION_MINOR}")
message("MySQL_FIND_VERSION_PATCH = ${MySQL_FIND_VERSION_PATCH}")
message("MySQL_FIND_VERSION_TWEAK = ${MySQL_FIND_VERSION_TWEAK}")
message("MySQL_FIND_VERSION_COUNT = ${MySQL_FIND_VERSION_COUNT}")
message("MySQL_FIND_VERSION_EXACT = ${MySQL_FIND_VERSION_EXACT}")
message("MySQL_FIND_COMPONENTS = ${MySQL_FIND_COMPONENTS}")
message("MySQL_FIND_REQUIRED = ${MySQL_FIND_REQUIRED}")
message("MySQL_FIND_QUIETLY = ${MySQL_FIND_QUIETLY}")
endif()