Re: Can someone confirm?
Yavuz Mert <[email protected]> Tue, 7 Apr 2020 12:49:55 +0300
| Newsgroups | gmane.comp.kde.users.kdevelop |
|---|---|
| Message-ID | <CADCi4_bMHb8q1V=_x=ymYJxvFvAT-US_+WxDH5fAkA9ioU6AAA@mail.gmail.com> |
>An in-tree build directory? Not entirely but sort of. My outmost CMakeList.txt, kdev4 file, build dir. and source directory are in the same directory. I think that is a common practice. Anyway, I was intentionally not using "exclude item from project" for my build directories in order not to prevent parsing of generated files. The parser still picking up generated files is a nice tip for me :) On Tue, Apr 7, 2020 at 11:37 AM René J.V. Bertin <[email protected]> wrote: > On Tuesday April 07 2020 01:05:30 Yavuz Mert wrote: > > >My similar problem, maybe not the same, was generated copy of source files > >in the build directory, especially after "make package_source". > > An in-tree build directory? I almost always use an out-of-tree build > directory ("next to" the source directory) but if I do use an in-tree one I > always use the "exclude item from project" action in the project manager. > The parser should still pick up generated header/source files (because it > uses the compiler commandline, so the generated -I options), just like it > does with an out-of-tree build directory. > > FWIW Yavuz's issue is probably identical to the one I mentioned when you > have multiple projects. In fact, I may have confounded "multiple projects > with the same filenames" with "multiple files with the same name in > different directories in the same project" - I'm pretty certain that has > already given me surprises too. > > R. > > PS: long ago I contributed a patch to allow the project import wizard to > recognise and suggest existing "build" directories that live in the same > directory as the source directory. IIRC it was rejected as being to > specific to 1 user's (my) non-standard workflow. >