summaryrefslogtreecommitdiffstats
path: root/storage/sphinx/CMakeLists.txt
blob: 7cae7982e05d0d265c08b02f1ddf19d34673e586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
INCLUDE(CheckCCompilerFlag)

ADD_DEFINITIONS(-DMYSQL_SERVER)

MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-write-strings")

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()
  # Disable warning about deprecated functions, inet_aton
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
  STRING(REPLACE "/permissive-" "" CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS}" )
ENDIF()

IF(MSVC)
  LINK_LIBRARIES(ws2_32)
ENDIF(MSVC)

SET(SPHINX_SOURCES ha_sphinx.cc snippets_udf.cc)
MYSQL_ADD_PLUGIN(sphinx ${SPHINX_SOURCES} STORAGE_ENGINE)