title: Error while building opencv with mingw and cmake : "windres.exe: invalid option -- W"
body: <p>I am trying to build opencv 3.4 source with mingw and cmake. I have configured &amp; generated with cmake, then using admin powershell i run <code>mingw32-make.exe</code> in the build directory chosen in cmake</p>
  
  <p>Here are the last lines of output:</p>
  
  <p><a href="https://i.stack.imgur.com/r10qt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r10qt.png" alt="enter image description here"></a></p>