--- a/build/cmake/functions.cmake
+++ b/build/cmake/functions.cmake
@@ -498,7 +498,7 @@
         set_target_properties(${name} PROPERTIES PROJECT_LABEL ${name_short})
 
         # Setup install
-        if(MSYS OR CYGWIN)
+        if(MSYS OR CYGWIN OR MINGW)
             # configure puts the .dll in the bin directory
             set(runtime_default_dir "bin")
         else()
