All of lore.kernel.org
 help / color / mirror / Atom feed
From: mattwood2000 at gmail.com <mattwood2000@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] CMake package requires out of source build
Date: Wed, 17 Feb 2021 16:17:56 -0500	[thread overview]
Message-ID: <CADjezmZhfR4mVdDGF-YjAeOf+AasWLmoPbctaGSZyaWfGkf95w@mail.gmail.com> (raw)
In-Reply-To: <20210217181627.kba2lo2fskbvvx3l@falbala.internal.home.lespocky.de>

Hi Alex,

On Wed, Feb 17, 2021 at 1:16 PM Alexander Dahl <post@lespocky.de> wrote:
>
>
> Oh, my bad. Of course building in a subfolder "build" (or with another name like above) is
> quite common with CMake. I usually don't do this, but that's of course
> only my personal preference.

No problem at all!

>
> > But in this case there is a cmake rule that iterates over the entire
> > source directory to check if the build directory is present:
> > https://github.com/alexa/avs-device-sdk/blob/master/build/cmake/DisallowOutOfSourceBuilds.cmake
>
> That makes no sense to me. In that script they link to
> https://gitlab.kitware.com/cmake/community/-/wikis/FAQ#cmake-does-not-generate-a-make-distclean-target-why
> but that only covers in source builds.
>
Agreed, very strange indeed.  And, like I said it builds perfectly
fine overriding their rule.

> > Removing the rule from BuildDefaults.cmake gets around this issue.
> > Also, the source builds perfectly fine this way.  I'm not sure why
> > Amazon forces this.
>
> Agreed. So why not patch 'build/BuildDefaults.cmake' like that and add
> the patch to the buildroot package for that avs-device-sdk instead of
> changing buildroot core?

Yup, thats exactly what I did, I reverted my patch against the core
and all works now

Thanks, Matt.
>
> Greets
> Alex
>
> --
> /"\ ASCII RIBBON | ?With the first link, the chain is forged. The first
> \ / CAMPAIGN     | speech censured, the first thought forbidden, the
>  X  AGAINST      | first freedom denied, chains us all irrevocably.?
> / \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)

  parent reply	other threads:[~2021-02-17 21:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-15 21:28 [Buildroot] CMake package requires out of source build mattwood2000 at gmail.com
2021-02-15 23:07 ` Peter Seiderer
2021-02-17 14:20   ` mattwood2000 at gmail.com
2021-02-17 15:52     ` Alexander Dahl
2021-02-17 16:59       ` mattwood2000 at gmail.com
2021-02-17 18:16         ` Alexander Dahl
2021-02-17 20:58           ` Adam Duskett
2021-02-18 15:23             ` mattwood2000 at gmail.com
2021-02-18 16:35               ` Adam Duskett
2021-02-17 21:17           ` mattwood2000 at gmail.com [this message]
2021-02-17 22:51     ` Peter Seiderer

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=CADjezmZhfR4mVdDGF-YjAeOf+AasWLmoPbctaGSZyaWfGkf95w@mail.gmail.com \
    --to=mattwood2000@gmail.com \
    --cc=buildroot@busybox.net \
    /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.
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.