Source files are located outside of CMakeLists.txt directory

Hi,

Sometimes I get the error "Some source files are located outside of CMakeLists.txt directory. You can change the project root or ignore this in future."

It seems to me that all my sources are under the project root. How can I see the files CLion complains about?

5 comments
Comment actions Permalink

Hi Arseny.

I suppose that you've faced with this issue. Please comment or upvote.

0
Comment actions Permalink

Well, if it refers to sources in path like /home/ars/.CLion12/system/cmake/generated/d88072b8/d88072b8/Debug/*, yes, perhaps this is the case. Nevertheless, I still don't know how to get list of these files.

My project structure looks like this:

0
Comment actions Permalink

Sorry, it's not implemented now. I've created a feature request: https://youtrack.jetbrains.com/issue/CPP-5573. Feel free to comment or upvote.

1
Comment actions Permalink

Normally, such files should be visible in the Project view, but in the screenshot there are none.

Could you please try to isolate the problem in a sample project and attach to the ticket?

0
Comment actions Permalink

Sorry, no, not in the nearest future at least. I've switched to emacs and pretty happy now :)

1

Please sign in to leave a comment.