[CMake] Source file symlinks on out-of-source builds

Jed Brown jed at 59A2.org
Fri Dec 4 04:02:26 EST 2009


On Thu, 03 Dec 2009 18:17:21 -0200, Rodolfo Schulz de Lima <rodolfo at rodsoft.org> wrote:
> How does emacs know all the project files? Or it is only looking
> backwards on the include list (this would only find header files)?

M-x visit-tags-table

I have a cmake command to generate tags in the *source* directory, I run
it from any build directory.  For semantic analysis, see
ede-cpp-root-project.  I would like to see this scraped from CMake to
automatically pick up config.h, currently I just point it at the
config.h in a representative build directory.

> I think that there's a misunderstanding here. I'm not for in-source
> builds, quite the contrary. I just want to have my source files
> symlinked inside the out-of-build tree. Maybe we must come with another
> term for this kind of tree (symlink tree looks good). This wouldn't
> limit yourself to one configuration. You would have all benefits of both
> worlds, in-source and out-source build trees.

I don't want any tools to think that the source file is associated with
a particular build.  I change configurations
{ompi,mpich2}{real,complex}{debug,opt} all the time and having the
editor think it was looking at different files would be a disaster.

Jed


More information about the CMake mailing list