all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: help-gnu-emacs@gnu.org
Subject: Re: Out of source compilation
Date: Sun, 01 Sep 2019 18:52:52 +0200	[thread overview]
Message-ID: <875zmcrmaj.fsf@telefonica.net> (raw)
In-Reply-To: 20190901162216.t7bzavekajd3mmdq@Ergus

Ergus <spacibba@aol.com> writes:

> No, sorry I explained wrong myself ;)
>
> I was asking about using the M-x compile command in general. So use
> compilation buffers, recompile, goto-next-error and so on.
>
> When compiling in source it is almost trivial, but when the building
> directory is out of sources (like cmake does by default)

No, CMake does not build out of source by default. CMake uses the
current directory by default :-)

> I don't know if
> there is a way to tell to emacs that the compilation directory is
> somewhere else. 

No that I know of, that's because I rolled my own.

On Emacs proper, there is project.el which has a TODO about
project-build:

;; * Build tool related functionality.  Start with a `project-build'
;;   command, which should provide completions on tasks to run, and
;;   maybe allow entering some additional arguments.

which is a bit vague.

Creating your own command to be used instead of `compile' (or advising
it) is quite easy, so easy that the value of any future built-in
functionality is questionable given the vast differences on build setups
that you will find out there.




  reply	other threads:[~2019-09-01 16:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-01  3:57 Out of source compilation Ergus
2019-09-01  8:24 ` tomas
2019-09-01 12:55   ` VanL
2019-09-01 14:19     ` tomas
2019-09-01 16:22   ` Ergus
2019-09-01 16:52     ` Óscar Fuentes [this message]
2019-09-01 17:12     ` tomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875zmcrmaj.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.