--- scodelite/sdk/databaselayer/CMakeLists.txt.orig	2015-12-28 12:24:47.723314900 +0300
+++ codelite/sdk/databaselayer/CMakeLists.txt	2015-12-28 12:26:06.692417200 +0300
@@ -62,6 +62,12 @@
 add_library(databaselayersqlite SHARED ${SRCS} ${MYSQL_SRCS})
 target_link_libraries(databaselayersqlite ${LINKER_OPTIONS} ${wxWidgets_LIBRARIES} -L"${CL_LIBPATH}" ${SQLITE3_LIBRARY})
 
+if(MINGW)
+    set_target_properties(databaselayersqlite
+                          PROPERTIES
+                          PREFIX "")
+endif()
+
 if(APPLE)
     install(TARGETS databaselayersqlite DESTINATION ${CMAKE_BINARY_DIR}/codelite.app/Contents/MacOS/)
     CL_INSTALL_NAME_TOOL_STD(${CMAKE_BINARY_DIR}/codelite.app/Contents/MacOS/libdatabaselayersqlite.dylib)
