Skip to content

Commit

Permalink
cleanup: reuse MY_CHECK_AND_SET_COMPILER_FLAG in sphinx/CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Dec 4, 2014
1 parent d2a78de commit 0d30423
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions storage/sphinx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0d30423

Please sign in to comment.