Yeah I had this problem to. The only way I found out was to switch to cmake.