Using Directory List or Path List Build Variable types [message #1427440] |
Sat, 20 September 2014 06:58 |
Jeff Hopkins Messages: 5 Registered: July 2014 |
Junior Member |
|
|
In CDT 8.3, I used to be able to create a Directory List-type Build Variable from Windows->Preferences->C/C++->Build->Build Variables -- call it INCLUDE_LIST -- and reference that variable from Project->Properties->C/C++ General->Paths and Symbols->Includes -- as, say, ${INCLUDE_LIST}. This allowed me to maintain a centralized collection of settings including this variable that would be supplied automatically to my users. I could update the Directory List and the automatic distribution scheme would make it effective without having to track and update every user's project files when I need to rearrange and add to the infrastructure with which they are building.
So far so good, but.... When I started my trial on CDT 8.4, many of my include files would not be found by the indexer -- and it was specific to the files that would be found on my Directory List paths. I did a little experimentation on the stock Hello, World project and no matter how I fiddled with it, I couldn't successfully use either Directory List or Path List Build Variables (with more than one entry) as suppliers of include paths.
I'm not an experienced CDT coder, but I was able to get deep enough to notice that an include path String array contained all my directories, but they were all still tied up in a single String (space delimited). When the include file indexing code was looking for a file, the file would be tagged onto the end of this long String of multiple paths and of course wouldn't be found.
So I'm trying to figure out if this is a feature (disable intentionally) or bug in the new CDT and whether I need to hack my own new CDT plugin. If I do that, I can brute-force tokenize and split my Directory Lists at some point in the cycle but I'm worried about the robustness of that approach (alternate initialization paths, OS-specific rules and patterns, etc.). Does anyone have any guidance for a clean way to handle the list-type Build Variables? They used to work. What's the correct way to recover the individual entries in the list?
|
|
|
Powered by
FUDForum. Page generated in 0.03597 seconds