Re: [yocto] Relase or debug by PACKAGECONFIG or MY_APP_VAR?

2018-12-13 Thread Burton, Ross
On Thu, 13 Dec 2018 at 08:20, Mauro Ziliani wrote: > To compile the app in release mode I need set > > EXTRA_OECMAKE + = " -DCMAKE_BUILD_TYPE=Release " > > > while in debug mode I need to set > > EXTRA_OECMAKE + = " -DCMAKE_BUILD_TYPE=Debug " > > > I defined 2 image recipes: one for production

[yocto] Relase or debug by PACKAGECONFIG or MY_APP_VAR?

2018-12-13 Thread Mauro Ziliani
Hi all. I have an application made with cmake and qt5 by the recipe my-app.bb To compile the app in release mode I need set EXTRA_OECMAKE + = " -DCMAKE_BUILD_TYPE=Release " while in debug mode I need to set EXTRA_OECMAKE + = " -DCMAKE_BUILD_TYPE=Debug " I defined 2 image recipes: one for