mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
cleanup: reuse MY_CHECK_AND_SET_COMPILER_FLAG in sphinx/CMakeLists.txt
This commit is contained in:
@@ -2,10 +2,7 @@ INCLUDE(CheckCCompilerFlag)
|
||||
|
||||
ADD_DEFINITIONS(-DMYSQL_SERVER)
|
||||
|
||||
CHECK_C_COMPILER_FLAG("-Wno-write-strings" WNO_WRITE_STRING)
|
||||
IF(WNO_WRITE_STRING)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-write-strings")
|
||||
ENDIF()
|
||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-write-strings")
|
||||
|
||||
IF(MSVC)
|
||||
LINK_LIBRARIES(ws2_32)
|
||||
|
||||
Reference in New Issue
Block a user