Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-07 Thread Mikko.Rapeli
Hi, >From my experience, what CMAKE_BUILD_TYPE means varies between SW components. Thus I think the current approach of not setting it is correct. SW components must set their own defaults in either CMakeLists.txt or in the bitbake recipe. Also, building with debug info is separate from

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Matt Schuckmann
To: Matt Schuckmann Cc: yocto@yoctoproject.org Subject: Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE On Wed, Feb 6, 2019 at 11:53 PM Andreas Müller wrote: > > On Wed, Feb 6, 2019 at 11:24 PM Andreas Müller > wrote: > > > > On Wed, Feb 6, 2019 at 11:05 PM Matt

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Andreas Müller
On Wed, Feb 6, 2019 at 11:53 PM Andreas Müller wrote: > > On Wed, Feb 6, 2019 at 11:24 PM Andreas Müller > wrote: > > > > On Wed, Feb 6, 2019 at 11:05 PM Matt Schuckmann > > wrote: > > > > > > Hi Andreas, > > > > > > Thanks for the response, do you set build type in each recipe > > >

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Andreas Müller
On Wed, Feb 6, 2019 at 11:24 PM Andreas Müller wrote: > > On Wed, Feb 6, 2019 at 11:05 PM Matt Schuckmann > wrote: > > > > 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

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Andreas Müller
On Wed, Feb 6, 2019 at 11:05 PM Matt Schuckmann wrote: > > 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. Honestly: I do not set them yet because I thought

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Matt Schuckmann
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 wrote: > > I'm trying to understand why the cmake.bbclass doesn't make any attempt to > set CMAKE_BUILD_TYPE and what the design philosop

Re: [yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Andreas Müller
On Wed, Feb 6, 2019 at 7:39 PM Matt Schuckmann 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

[yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

2019-02-06 Thread Matt Schuckmann
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