How to inform -I include directories for better parsing and IntelliSense

My project is based on Makefile, and it's not easy to convert to CMake.

I'm using CLion just for editing and browsing the source code. Building and debugging are separately done in a terminal.

Unfortunately, CLion fails to find many of definitions/declarations of the code because it doesn't understand any Makefile.

One of the most critical reasons would be not knowing -I include directories.

I'm wondering if there is any way to give some information of -I options to CLion IntelliSense engine.

I'm thinking creating a fake CMakeFile might be a solution.

1 comment
Comment actions Permalink

Hi Carolle!

There is no way to tell CLion about include directories other than using include_directories() command in CMakeLists.txt. It is probably already created for you when you've imported your project. You can find out more here.

0

Please sign in to leave a comment.