--- a/cmake/QbsBuildConfig.cmake
+++ b/cmake/QbsBuildConfig.cmake
@@ -209,6 +209,9 @@
         INSTALL_RPATH "${QBS_PLUGINS_RPATH}"
         MACOSX_RPATH ${QBS_MACOSX_RPATH}
         )
+    if(MINGW)
+        set_target_properties(${target_name} PROPERTIES PREFIX "")
+    endif()
     install(TARGETS ${target_name}
         LIBRARY DESTINATION ${QBS_PLUGINS_INSTALL_DIR}
         RUNTIME DESTINATION ${QBS_PLUGINS_INSTALL_DIR}
