summaryrefslogtreecommitdiff
path: root/storage/spider
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2015-09-01 21:58:10 +0200
committerSergei Golubchik <serg@mariadb.org>2015-09-04 10:32:02 +0200
commite74f91dfd7986a63e73e72b8a1fbeaa2822d8f1e (patch)
treea23f27c30e40dd58c1a7c6eb2c1ce89ab6826a8b /storage/spider
parentefbd4bb039060e9cc7a82467c36307367f4013ec (diff)
downloadmariadb-git-e74f91dfd7986a63e73e72b8a1fbeaa2822d8f1e.tar.gz
cmake: always use the same function to test for compiler flags
Fix all cmake tests (including plugin) to use MY_CHECK_AND_SET_COMPILER_FLAG. And fix that function to be compatible with cmake 3.0. This way flag checks are correctly cached (even in cmake 3.0) and properly reused.
Diffstat (limited to 'storage/spider')
-rw-r--r--storage/spider/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/spider/CMakeLists.txt b/storage/spider/CMakeLists.txt
index 33786e2b85a..402c74b2cde 100644
--- a/storage/spider/CMakeLists.txt
+++ b/storage/spider/CMakeLists.txt
@@ -1,10 +1,7 @@
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_HANDLERSOCKET")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DHAVE_HANDLERSOCKET")
-IF(HAVE_WVLA)
- SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wno-vla")
- SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wno-vla")
-ENDIF()
+MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-vla" DEBUG)
SET(SPIDER_SOURCES
spd_param.cc spd_sys_table.cc spd_trx.cc spd_db_conn.cc spd_conn.cc