2014-02-01 14:08:34 +01:00
|
|
|
INCLUDE(CheckCCompilerFlag)
|
|
|
|
|
2011-04-25 17:22:25 +02:00
|
|
|
ADD_DEFINITIONS(-DMYSQL_SERVER)
|
2014-02-01 14:08:34 +01:00
|
|
|
|
2014-11-19 08:55:06 +01:00
|
|
|
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-write-strings")
|
2014-02-01 14:08:34 +01:00
|
|
|
|
2018-02-06 13:55:58 +01:00
|
|
|
IF(MSVC)
|
|
|
|
# Temporarily disable "conversion from size_t .." warnings
|
|
|
|
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267")
|
|
|
|
ENDIF()
|
2018-02-07 21:17:38 +01:00
|
|
|
# Disable warning about deprecated functions, inet_aton
|
|
|
|
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
|
2018-02-07 02:40:16 +01:00
|
|
|
STRING(REPLACE "/permissive-" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" )
|
2018-02-06 13:55:58 +01:00
|
|
|
ENDIF()
|
|
|
|
|
2011-04-25 17:22:25 +02:00
|
|
|
IF(MSVC)
|
2011-11-26 23:07:53 +01:00
|
|
|
LINK_LIBRARIES(ws2_32)
|
2011-04-25 17:22:25 +02:00
|
|
|
ENDIF(MSVC)
|
2013-05-22 16:44:44 +02:00
|
|
|
|
2014-02-01 14:08:34 +01:00
|
|
|
SET(SPHINX_SOURCES ha_sphinx.cc snippets_udf.cc)
|
2022-09-12 14:39:12 +02:00
|
|
|
MYSQL_ADD_PLUGIN(sphinx ${SPHINX_SOURCES} STORAGE_ENGINE RECOMPILE_FOR_EMBEDDED)
|