Blog

Written words that are often helpful

Using Eclipse with CMake Projects

Posted by chathaway on Aug. 9, 2018, 3:14 p.m.

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:

  1. File -> New -> New C/C++ Project
  2. Select "Empty or Existing CMake Project"
  3. Uncheck "Use default location", and navigate to your project

Then things should magically work.

Pictures for those who need them:

Select New C/C++ Project

Uncheck


Banner Image © 2017 Ranjani Hathaway | Content © 2017 Charles Hathaway PDF