Subprojects give me grief when using cmake [message #899936] |
Fri, 03 August 2012 01:22  |
Eclipse User |
|
|
|
Hello,
I use cmake to create my projects. My build directory is "out of source". Cmake creates three "resources" in my project:
[Source Directory]: this is where my source is
[Subprojects]: I have no idea what this is for, but it also holds my source
[Targets]: Again, I have no idea what this is for.
Question: How do I tell Eclipse/CDT to never open a supposed "source file" from within the "Subprojects" resource?
Sometimes Eclipse's extremely useful F3 key takes me to a file in the bogus resource. Worse, I often do not realize what had happened and start editing them and eventually screw myself over.
Thank you!
Chris
[Updated on: Fri, 03 August 2012 01:57] by Moderator
|
|
|
|
|
|
|
|
Re: Subprojects give me grief when using cmake [message #949278 is a reply to message #948782] |
Thu, 18 October 2012 17:39  |
Eclipse User |
|
|
|
Axel Mueller wrote on Thu, 18 October 2012 07:18In Project Properties->C/C++ General->Paths and Symbols you can define the Source location (default is the whole project but you can exclude subfolders). The indexer will only have a look at these folders.
Axel,
This seems to work! I cannot tell you how happy this makes me! Thank you!
I filed a cmake bug to encourage them to change this setting:
http://public.kitware.com/Bug/view.php?id=13596
Thank you!
Chris
[Updated on: Thu, 18 October 2012 17:40] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04218 seconds