[yocto] CMake based recipes and defining CMAKE_BUILD_TYPE

Mikko.Rapeli at bmw.de Mikko.Rapeli at bmw.de
Thu Feb 7 00:03:09 PST 2019


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 CMAKE_BUILD_TYPE. The default
compile flags from yocto will include -g for debug symbols and this is provided
to CMake compile flags too.

Cheers,

-Mikko


More information about the yocto mailing list