


Below is the short answer with steps I used to fix the issue.SHORT ANSWER (should be similar for MinGW too but I haven't tried it): My OS is installed in C:\ drive and CLion 1.2.1 and Cygwin (64-bit) are installed in D:\ drive.The issue seems to be with CMake. It was working fine before I had updated my OS. I ran into the same issue with CLion 1.2.1 (at the time of writing this answer) after updating Windows 10.
Compile In Clion Full Path To
You can Google how to find environment variables for your version of WindowsAdd the 'bin' folder to the Path variable. You can find the required version numbers at CLion's Quick Start section (I cannot post more than 2 links until I have more reputation points).Next, you need to add Cygwin (or MinGW) to your Windows Environment Variable called 'Path'. Check the project configuration ('Run' -> 'Edit configuration') to make sure your project name appears there and you can select options in 'Target', 'Configuration' and 'Executable' fields.Below are the detailed steps that solved this issue for me:Uninstall/delete the previous version of Cygwin (MinGW in your case)Install at least the following packages for Cygwin:Make sure you are installing the correct versions of the above packages that CLion requires. Restart CLion and check 'Settings' -> 'Build, Execution, Deployment' to make sure CLion has picked up the right versions of Cygwin, make and gdb Add full path to Cygwin 'bin' directory to Windows Environment variables
You should see the output in the terminal windowHope this helps! Good luck and enjoy CLion. You will see that the 'Run' -> 'Build' option is now activeBuild your project and then run the project. You should see your project name in the left-side panel and the configurations on the right sideSee screenshot: Check the configuration to run the projectThere should be no errors in the console window. Now go to 'Run' -> 'Edit configuration'.
