For a long time, I was using the cmake CDT generator to make cmake projects. I started getting very strange errors in the most recent version of Eclipse, and stumbled upon this thread which explained the CDT generator was super old.
To do this with a modern Eclipse version, you basically want to:
- File -> New -> New C/C++ Project
- Select “Empty or Existing CMake Project”
- Uncheck “Use default location”, and navigate to your project
Then things should magically work.
Pictures for those who need them:

<img style=“width: 100%;” alt=“Uncheck “Use default location”” src=“http://logrit.com/media/uploads/Screenshot%20from%202018-08-09%2011-11-48.png" />
Content © 2022 Charles Hathaway