Clion finds wrong make file path to use in. Instead of using make file at cygwin64, it uses a gmake file in Matlab and this creates a problem. I put cygwin path in enviranment variables to the beginning but this didn't solve the problem. I have to delete gmake.exe from Matlab in order to force it find the correct make file. Is there a solution for this?