Debug/CHECK builds of bgfx were not straightforward with the current setup; bgfx relies on BX also being debug-enabled, while this only enabled it for BGFX and only in CMAKE Debug mode. You actually have to enable BX_TRACE in both bgfx and bx to actually get trace working. This was only adding it to bgfx, and only with CMAKE_BUILD_TYPE=Debug.
I Added BGFX_CONFIG_DEBUG cmake option to easily enable checked/trace builds in release mode so you don't get the overhead.
Debug/CHECK builds of bgfx were not straightforward with the current setup; bgfx relies on BX also being debug-enabled, while this only enabled it for BGFX and only in CMAKE Debug mode. You actually have to enable BX_TRACE in both bgfx and bx to actually get trace working. This was only adding it to bgfx, and only with CMAKE_BUILD_TYPE=Debug.
I Added BGFX_CONFIG_DEBUG cmake option to easily enable checked/trace builds in release mode so you don't get the overhead.