All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Schuckmann <Matt.Schuckmann@planar.com>
To: "Andreas Müller" <schnitzeltony@gmail.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: CMake based recipes and defining CMAKE_BUILD_TYPE
Date: Wed, 6 Feb 2019 22:04:58 +0000	[thread overview]
Message-ID: <1549490698733.2960@planar.com> (raw)
In-Reply-To: <CALbNGRQrxMp2MuLPy1newCaHRLf2BAL9uohqc_A8bPoSodtMHA@mail.gmail.com>

Hi Andreas, 

Thanks for the response, do you set build type in each recipe individually or is there some central .conf file or other other location that you set it? 

Matt S. 
________________________________________
From: Andreas Müller <schnitzeltony@gmail.com>
Sent: Wednesday, February 6, 2019 1:31 PM
To: Matt Schuckmann
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

On Wed, Feb 6, 2019 at 7:39 PM Matt Schuckmann
<Matt.Schuckmann@planar.com> wrote:
>
> I'm trying to understand why the cmake.bbclass doesn't make any attempt to set CMAKE_BUILD_TYPE and what the design philosophy behind that is?
>
> On the surface I would expect that the default build type would be Release but I can see how that might not always be the right choice. I'm really surprised that there isn't a global variable that can be set for this, am I missing something, or is it really expected that each recipe provide it if they care?
>
>
> FYI I started looking into this when I realized that NDEBUG is not set for many (if not all) of my CMake based recipes and thus asserts are still enabled in my production code. This appears to be known behavior for CMake if CMAKE_BUILD_TYPE is not set.
>
>
> Matt S.
>
Hi Matt,

This is not a full answer but Release is not a common target for us:
cmake will produce not containing debug info. With these debugging is
useless (and you'll get package qa warnings). If there is a default
target for us it is RelWithDebInfo.

Andreas





  reply	other threads:[~2019-02-06 22:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-06 18:23 CMake based recipes and defining CMAKE_BUILD_TYPE Matt Schuckmann
2019-02-06 21:31 ` Andreas Müller
2019-02-06 22:04   ` Matt Schuckmann [this message]
2019-02-06 22:24     ` Andreas Müller
2019-02-06 22:53       ` Andreas Müller
2019-02-06 23:11         ` Andreas Müller
2019-02-07  0:08           ` Matt Schuckmann
2019-02-07  8:03             ` Mikko.Rapeli

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=1549490698733.2960@planar.com \
    --to=matt.schuckmann@planar.com \
    --cc=schnitzeltony@gmail.com \
    --cc=yocto@yoctoproject.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.
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.