BOP Define descovery gives empty values [message #1744404] |
Mon, 26 September 2016 15:20 |
Richard Schelin Messages: 2 Registered: September 2016 |
Junior Member |
|
|
The problem is simple, we (large team, I'm just a small cog, so changing the flow is not in my purview)
I have gotten the BOP to consume the build information and most things work great. What I have noticed is we have a line that has something like:
g++ .... -DDEBUG -DXYZ -DABC
Then we have a section of code that uses those:
#ifdef DEBUG
<DEBUG logic>
#endif
g++ interprets the above so the <DEBUG logic> is included, CDT does not.
Looking into properties->C/C++ General->Preprocessor Include Paths, Macros etc. -> Setting Entries -> CDT GCC Build Output Parser I see:
# DEBUG=
So it is finding the line, but it has no value.
I can work around this by setting the variable by hand, but this then breaks when I change build parameters and get different build results, it also makes it so I have to hand edit settings each time I bring up eclipse in a client area.
Did I miss an option, I searched the forums (and google) but could not find a solution.
I'm using Eclipse Mars with the latest Mars CDT release. We use Perforce as a repository and I found that pllugin has not been enabled for Neon when I started playing with all this.
Thanks for any help!
Rich
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04239 seconds