--- libmariadb/libmariadb/CMakeLists.txt.orig	2022-08-10 10:25:18 UTC
+++ libmariadb/libmariadb/CMakeLists.txt
@@ -464,6 +464,7 @@ IF(NOT WIN32)
   SET_TARGET_PROPERTIES(mariadbclient PROPERTIES OUTPUT_NAME "${LIBMARIADB_STATIC_NAME}")
 ENDIF()
 
+IF(NOT WITHOUT_CLIENT)
 INSTALL(TARGETS mariadbclient
           COMPONENT Development
           DESTINATION ${INSTALL_LIBDIR})
@@ -480,6 +481,8 @@ INSTALL(TARGETS libmariadb LIBRARY DESTINATION ${INSTA
         COMPONENT SharedLibraries NAMELINK_SKIP)
 INSTALL(TARGETS libmariadb LIBRARY DESTINATION ${INSTALL_LIBDIR}
         COMPONENT Development NAMELINK_ONLY)
+ENDIF()
+
 ENDIF()
 
 IF(MSVC)
