8

I am working with CLion and when loading a project from a valid CMakeLists file I get the warning that none of the files belong to any project target. This is annoying and I found a solution here that seems to work for most people.

In CLion, header only library: file "does not belong to any project target, code insight features might not work properly"

However when I try and mark an include directory as part of the project there is not an option. The only options is to mark it has a python namespace package. Googling for this issue didn't seem to turn anything up. Does anyone know why that option would not be there?

ryanh153
  • 195
  • 6

1 Answers1

4

You can remove the CLion configuration in the containing folder then reopen the project.

rm -rf .idea

It did work for me.

YesThatIsMyName
  • 1,585
  • 3
  • 23
  • 30
ming
  • 101
  • 4