Using Eclipse with CMake Projects
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: