I'm not sure about it. I think I've put dependency checks in CMakeList, as it works on Linux and Mac. Not sure why it won't work on mingw