--- libmariadb/plugins/trace/CMakeLists.txt.orig	2017-05-14 23:13:15 UTC
+++ libmariadb/plugins/trace/CMakeLists.txt
@@ -4,6 +4,7 @@ IF(WITH_SIGNCODE)
   INCLUDE(${CC_SOURCE_DIR}/cmake/sign.cmake)
 ENDIF()
 
+IF(NOT WITHOUT_CLIENT)
 # Trace example plugin
 IF(TRACE_EXAMPLE_PLUGIN_TYPE MATCHES "DYNAMIC")
   IF(WIN32)
@@ -23,3 +24,4 @@ IF(TRACE_EXAMPLE_PLUGIN_TYPE MATCHES "DY
   INSTALL_PLUGIN(trace_example ${CC_BINARY_DIR}/plugins/trace)
   SIGN_TARGET(trace_example)
 ENDIF()
+ENDIF()
