--- a/OgreOfsPlugin/CMakeLists.txt
+++ b/OgreOfsPlugin/CMakeLists.txt
@@ -17,6 +17,10 @@
 
 set_target_properties(OgreOfsPlugin PROPERTIES COMPILE_DEFINITIONS "PLUGIN_EXPORT")
 
+if(MINGW)
+    set_target_properties(OgreOfsPlugin PROPERTIES PREFIX "")
+endif()
+
 target_link_libraries(OgreOfsPlugin ${OGRE_LIBRARIES} OFS)
 
 install(TARGETS OgreOfsPlugin
