diff options
author | Dmitry Shulga <dmitry.shulga@mariadb.com> | 2020-10-23 18:42:26 +0700 |
---|---|---|
committer | Dmitry Shulga <dmitry.shulga@mariadb.com> | 2020-10-23 18:42:26 +0700 |
commit | 79f6f0c4fcd5a79fe776a6c089e14c65a04a81bf (patch) | |
tree | 93bd319977845dad7dfb7c50258e7b886d7a8a57 /plugin | |
parent | 1a70c2c73a7c461cc2492db7f13c9d575330a2f4 (diff) | |
download | mariadb-git-79f6f0c4fcd5a79fe776a6c089e14c65a04a81bf.tar.gz |
MDEV-23564: CMAKE failing due to deprecated Apple GSS method
Some GSS-API functions like gss_import_name(), gss_release_buffer()
used in plugin/auth_gssapi and libmariadb/plugins/auth are marked
as deprecated in MacOS starting from version 10.14+. It results in
extra warnings output on server building.
To eliminate extra warnings the flag '-Wno-deprecated-declarations'
has been added to compiler invocation string for those source
files that invoke deprecated GSS-API functions.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/auth_gssapi/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin/auth_gssapi/CMakeLists.txt b/plugin/auth_gssapi/CMakeLists.txt index bca4f5af3a1..4d3718dd471 100644 --- a/plugin/auth_gssapi/CMakeLists.txt +++ b/plugin/auth_gssapi/CMakeLists.txt @@ -18,6 +18,11 @@ ELSE() SET(GSSAPI_SERVER gssapi_server.cc) SET(GSSAPI_ERRMSG gssapi_errmsg.cc) + IF(APPLE) + SET_SOURCE_FILES_PROPERTIES( + ${GSSAPI_CLIENT} ${GSSAPI_SERVER} ${GSSAPI_ERRMSG} + PROPERTY COMPILE_FLAGS "-Wno-deprecated-declarations") + ENDIF() SET(CMAKE_REQUIRED_INCLUDES ${GSSAPI_INCS}) SET(CMAKE_REQUIRED_LIBRARIES ${GSSAPI_LIBS}) INCLUDE(CheckCXXSymbolExists) |