All of lore.kernel.org
 help / color / mirror / Atom feed
* CMake based recipes and defining CMAKE_BUILD_TYPE
@ 2019-02-06 18:23 Matt Schuckmann
  2019-02-06 21:31 ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Matt Schuckmann @ 2019-02-06 18:23 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1178 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-02-07  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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.