summaryrefslogtreecommitdiff
path: root/storage/sphinx
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2014-11-19 08:55:06 +0100
committerSergei Golubchik <serg@mariadb.org>2014-12-04 10:41:51 +0100
commit0d30423900dd3a384f061c32f6ec3de9c11cdde9 (patch)
tree44af6422c69885bf89d735742589a3c38b1f8b31 /storage/sphinx
parentd2a78def63687ca7068acd9ec3bb4e45b14d49c6 (diff)
downloadmariadb-git-0d30423900dd3a384f061c32f6ec3de9c11cdde9.tar.gz
cleanup: reuse MY_CHECK_AND_SET_COMPILER_FLAG in sphinx/CMakeLists.txt
Diffstat (limited to 'storage/sphinx')
-rw-r--r--storage/sphinx/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/sphinx/CMakeLists.txt b/storage/sphinx/CMakeLists.txt
index e4b50827fe7..e50ba74ba90 100644
--- a/storage/sphinx/CMakeLists.txt
+++ b/storage/sphinx/CMakeLists.txt
@@ -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)