--- libmariadb/plugins/auth/CMakeLists.txt.orig 2019-11-07 05:52:21 UTC +++ libmariadb/plugins/auth/CMakeLists.txt @@ -3,6 +3,7 @@ SET(AUTH_DIR ${CC_SOURCE_DIR}/plugins/auth) INCLUDE_DIRECTORIES(${AUTH_DIR}) INCLUDE_DIRECTORIES(${CC_SOURCE_DIR}/include) +IF(NOT WITHOUT_CLIENT) SET(CRYPTO_PLUGIN 1) IF(WIN32) SET(CRYPT_SOURCE ${CC_SOURCE_DIR}/libmariadb/secure/win_crypt.c) @@ -18,6 +19,7 @@ ELSEIF(WITH_SSL STREQUAL "GNUTLS") ELSE() UNSET(CRYPTO_PLUGIN) ENDIF() +ENDIF() #native password REGISTER_PLUGIN(TARGET mysql_native_password @@ -119,10 +121,11 @@ REGISTER_PLUGIN(TARGET mysql_old_password DEFAULT STATIC SOURCES ${AUTH_DIR}/old_password.c) +IF(NOT WITHOUT_CLIENT) # Cleartext REGISTER_PLUGIN(TARGET mysql_clear_password TYPE MARIADB_CLIENT_PLUGIN_AUTH CONFIGURATIONS DYNAMIC STATIC OFF DEFAULT DYNAMIC SOURCES ${AUTH_DIR}/mariadb_cleartext.c) - +ENDIF()