--- libmariadb/CMakeLists.txt.orig	2017-05-28 18:41:39 UTC
+++ libmariadb/CMakeLists.txt
@@ -360,7 +360,7 @@ ENDIF()
 ADD_SUBDIRECTORY(include)
 ADD_SUBDIRECTORY(libmariadb)
 ADD_SUBDIRECTORY(plugins)
-IF(NOT WIN32)
+IF(NOT WIN32 AND NOT WITHOUT_CLIENT)
   ADD_SUBDIRECTORY(mariadb_config)
 ENDIF()
 
