--- libmariadb/CMakeLists.txt.orig	2018-05-23 20:38:41 UTC
+++ libmariadb/CMakeLists.txt
@@ -371,7 +371,7 @@ ENDIF()
 INCLUDE(${CC_SOURCE_DIR}/plugins/CMakeLists.txt)
 ADD_SUBDIRECTORY(include)
 ADD_SUBDIRECTORY(libmariadb)
-IF(NOT WIN32)
+IF(NOT WIN32 AND NOT WITHOUT_CLIENT)
   ADD_SUBDIRECTORY(mariadb_config)
 ENDIF()
 
