--- libmariadb/libmariadb/CMakeLists.txt.orig	2017-05-14 23:13:15 UTC
+++ libmariadb/libmariadb/CMakeLists.txt
@@ -401,9 +401,11 @@ SET_TARGET_PROPERTIES(libmariadb PROPERT
 INSTALL(TARGETS mariadbclient
           COMPONENT Development
           DESTINATION ${INSTALL_LIBDIR})
+IF(NOT WITHOUT_CLIENT)
 INSTALL(TARGETS libmariadb
           COMPONENT SharedLibraries
         DESTINATION ${INSTALL_LIBDIR})
+ENDIF()
 
 IF(WIN32)
    # On Windows, install PDB
