2013-10-02 15:41:15 +04:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql
|
2014-03-04 01:22:53 +01:00
|
|
|
${PCRE_INCLUDES}
|
2012-11-06 18:09:26 +01:00
|
|
|
${SSL_INCLUDE_DIRS})
|
2011-10-04 16:03:10 +02:00
|
|
|
|
|
|
|
SET(FEEDBACK_SOURCES feedback.cc sender_thread.cc
|
|
|
|
url_base.cc url_http.cc utils.cc)
|
|
|
|
|
2012-11-06 18:09:26 +01:00
|
|
|
ADD_DEFINITIONS(${SSL_DEFINES})
|
|
|
|
|
2011-11-22 18:04:38 +01:00
|
|
|
INCLUDE (CheckIncludeFiles)
|
|
|
|
CHECK_INCLUDE_FILES (netdb.h HAVE_NETDB_H)
|
|
|
|
IF(HAVE_NETDB_H)
|
|
|
|
ADD_DEFINITIONS(-DHAVE_NETDB_H)
|
|
|
|
ENDIF(HAVE_NETDB_H)
|
2011-10-04 16:03:10 +02:00
|
|
|
|
2011-11-22 18:04:38 +01:00
|
|
|
IF(WIN32)
|
MDEV-6248 GUI-friendly cmake options to enable/disable plugins
* Introduce a set of PLUGIN_xxx cmake options with values
NO, STATIC, DYNAMIC, AUTO, YES (abort if plugin is not compiled)
* Deprecate redundant and ambiguous WITH_xxx, WITH_PLUGIN_xxx,
WITH_xxx_STORAGE_ENGINE, WITHOUT_xxx, WITHOUT_PLUGIN_xxx,
WITHOUT_xxx_STORAGE_ENGINE
* Actually check whether a plugin is disabled (DISABLED keyword was
always present, but it was ignored until now).
* Support conditionally disabled plugins - keyword ONLY_IF
* Use ONLY_IF for conditionally skipping plugins, instead of
doing MYSQL_ADD_PLUGIN conditionally as before. Because if
MYSQL_ADD_PLUGIN isn't done at all, PLUGIN_xxx=YES cannot work.
2014-06-23 12:09:00 +02:00
|
|
|
SET(MAYBE_STATIC_ONLY STATIC_ONLY)
|
2011-11-22 18:04:38 +01:00
|
|
|
ENDIF(WIN32)
|
MDEV-6248 GUI-friendly cmake options to enable/disable plugins
* Introduce a set of PLUGIN_xxx cmake options with values
NO, STATIC, DYNAMIC, AUTO, YES (abort if plugin is not compiled)
* Deprecate redundant and ambiguous WITH_xxx, WITH_PLUGIN_xxx,
WITH_xxx_STORAGE_ENGINE, WITHOUT_xxx, WITHOUT_PLUGIN_xxx,
WITHOUT_xxx_STORAGE_ENGINE
* Actually check whether a plugin is disabled (DISABLED keyword was
always present, but it was ignored until now).
* Support conditionally disabled plugins - keyword ONLY_IF
* Use ONLY_IF for conditionally skipping plugins, instead of
doing MYSQL_ADD_PLUGIN conditionally as before. Because if
MYSQL_ADD_PLUGIN isn't done at all, PLUGIN_xxx=YES cannot work.
2014-06-23 12:09:00 +02:00
|
|
|
|
|
|
|
MYSQL_ADD_PLUGIN(FEEDBACK ${FEEDBACK_SOURCES}
|
|
|
|
LINK_LIBRARIES ${SSL_LIBRARIES}
|
2016-09-27 17:38:47 +02:00
|
|
|
${MAYBE_STATIC_ONLY} RECOMPILE_FOR_EMBEDDED DEFAULT)
|
MDEV-6248 GUI-friendly cmake options to enable/disable plugins
* Introduce a set of PLUGIN_xxx cmake options with values
NO, STATIC, DYNAMIC, AUTO, YES (abort if plugin is not compiled)
* Deprecate redundant and ambiguous WITH_xxx, WITH_PLUGIN_xxx,
WITH_xxx_STORAGE_ENGINE, WITHOUT_xxx, WITHOUT_PLUGIN_xxx,
WITHOUT_xxx_STORAGE_ENGINE
* Actually check whether a plugin is disabled (DISABLED keyword was
always present, but it was ignored until now).
* Support conditionally disabled plugins - keyword ONLY_IF
* Use ONLY_IF for conditionally skipping plugins, instead of
doing MYSQL_ADD_PLUGIN conditionally as before. Because if
MYSQL_ADD_PLUGIN isn't done at all, PLUGIN_xxx=YES cannot work.
2014-06-23 12:09:00 +02:00
|
|
|
|