bgfx: Add BGFX_MULTITHREADED option

This commit is contained in:
Sandy Carter
2022-04-06 07:25:10 -04:00
committed by Sandy
parent dd2017c332
commit d725e78f86
2 changed files with 14 additions and 9 deletions

View File

@@ -70,7 +70,11 @@ if( MSVC )
endif()
# Add debug config required in bx headers since bx is private
target_compile_definitions(bgfx PUBLIC "BX_CONFIG_DEBUG=$<CONFIG:Debug>")
target_compile_definitions(bgfx
PUBLIC
"BX_CONFIG_DEBUG=$<CONFIG:Debug>"
"BGFX_CONFIG_MULTITHREADED=$<BOOL:${BGFX_CONFIG_MULTITHREADED}>"
)
# Includes
target_include_directories( bgfx