Aright thank you for checking into this, you went farther then I expected. I will take the approach of setting it for the recipes I really care about and leave the rest alone.
Matt S. ________________________________________ From: Andreas Müller <schnitzelt...@gmail.com> Sent: Wednesday, February 6, 2019 3:11 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 11:53 PM Andreas Müller <schnitzelt...@gmail.com> wrote: > > On Wed, Feb 6, 2019 at 11:24 PM Andreas Müller <schnitzelt...@gmail.com> > wrote: > > > > On Wed, Feb 6, 2019 at 11:05 PM Matt Schuckmann > > <matt.schuckm...@planar.com> 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 RelWithDebInfo is > > default. That assumption was based on some projects but I checked now: > > it does not seem to be something to rely on... > > > Will build-/run-test this with my 'world': > > diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass > index fd40a9863e..a8e08e6d6f 100644 > --- a/meta/classes/cmake.bbclass > +++ b/meta/classes/cmake.bbclass > @@ -153,6 +153,7 @@ cmake_do_configure() { > -DCMAKE_TOOLCHAIN_FILE=${WORKDIR}/toolchain.cmake \ > -DCMAKE_VERBOSE_MAKEFILE=1 \ > -DCMAKE_NO_SYSTEM_FROM_IMPORTED=1 \ > + -DCMAKE_BUILD_TYPE=${@d.getVar(oe.utils.vartrue('DEBUG_BUILD', > 'Debug', 'RelWithDebInfo', d))} \ > ${EXTRA_OECMAKE} \ > -Wno-dev > } > > Takes a while... > Not exactly: After short build I saw: * There are some sed on '*-noconfig.cmake' they are going to break * libeigen fails because it supports 'Debug' and 'Release' only (and I bet there are more) Will skip further tests and get the feeling that a common solution won't do... Andreas -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto