diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-09-01 21:58:10 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-09-04 10:32:02 +0200 |
commit | e74f91dfd7986a63e73e72b8a1fbeaa2822d8f1e (patch) | |
tree | a23f27c30e40dd58c1a7c6eb2c1ce89ab6826a8b /cmake/maintainer.cmake | |
parent | efbd4bb039060e9cc7a82467c36307367f4013ec (diff) | |
download | mariadb-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 'cmake/maintainer.cmake')
-rw-r--r-- | cmake/maintainer.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/maintainer.cmake b/cmake/maintainer.cmake index 5e9d0d3ad99..24547103b63 100644 --- a/cmake/maintainer.cmake +++ b/cmake/maintainer.cmake @@ -15,8 +15,8 @@ # Common warning flags for GCC, G++, Clang and Clang++ SET(MY_WARNING_FLAGS "-Wall -Wextra -Wformat-security -Wno-init-self") -MY_CHECK_C_COMPILER_FLAG("-Wvla" HAVE_WVLA) # Requires GCC 4.3+ or Clang -IF(HAVE_WVLA) +MY_CHECK_C_COMPILER_FLAG("-Wvla") # Requires GCC 4.3+ or Clang +IF(HAVE_C__Wvla) SET(MY_WARNING_FLAGS "${MY_WARNING_FLAGS} -Wvla") ENDIF() |