| Subprojects give me grief when using cmake [message #899936] |
Fri, 03 August 2012 01:22  |
Chris Stankevitz Messages: 43 Registered: September 2011 |
Member |
|
|
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] Report message to a moderator
|
|
|
|
| Re: Subprojects give me grief when using cmake [message #903512 is a reply to message #900485] |
Fri, 24 August 2012 00:28   |
Chris Stankevitz Messages: 43 Registered: September 2011 |
Member |
|
|
Axel,
Thank you for this tip. I have been using it for the past couple weeks. I like that I can mark a project "derived" and signal that it should not be used for source code editing. I do not use Eclipse's 'search' feature, but I do believe you when you say "derived" projects are excluded from search results.
An eclipse feature that I use (and love) is F3 also known as "Open Declaration". Sometimes (I'd say 20% of the time) using F3 brings me to source code in a "derived" project. I generally do not notice when this happens. However, if I attempt to edit the source code, Eclipse CDT interrupts me with a modal dialog: 'Are you sure you want to edit source code in a "derived" project?'
Question: Can I command Eclipse/CDT to never direct me to "derived" projects when performing an F3/Open_Declaration?
Thank you again for your help,
Chris

[Updated on: Fri, 24 August 2012 00:31] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01711 seconds