From 93c9e73a429fa2972e2a5a6919547e4d4a2be1e3 Mon Sep 17 00:00:00 2001 From: Ravbug Date: Sun, 19 Dec 2021 12:12:00 -0800 Subject: [PATCH] Add checked & profile --- cmake/bgfx.cmake | 2 +- cmake/bx.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/bgfx.cmake b/cmake/bgfx.cmake index 3342249..376faa2 100755 --- a/cmake/bgfx.cmake +++ b/cmake/bgfx.cmake @@ -66,7 +66,7 @@ if( MSVC ) endif() # Add debug config required in bx headers since bx is private -target_compile_definitions(bgfx PUBLIC $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=0>) +target_compile_definitions(bgfx PUBLIC $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=0> $<$:BX_CONFIG_DEBUG=0>) # Includes target_include_directories( bgfx diff --git a/cmake/bx.cmake b/cmake/bx.cmake index 1c6196d..ca79c47 100644 --- a/cmake/bx.cmake +++ b/cmake/bx.cmake @@ -67,7 +67,7 @@ target_compile_definitions( bx PUBLIC "__STDC_LIMIT_MACROS" ) target_compile_definitions( bx PUBLIC "__STDC_FORMAT_MACROS" ) target_compile_definitions( bx PUBLIC "__STDC_CONSTANT_MACROS" ) -target_compile_definitions(bx PUBLIC $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=0>) +target_compile_definitions(bx PUBLIC $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=1> $<$:BX_CONFIG_DEBUG=0> $<$:BX_CONFIG_DEBUG=0>) # Additional dependencies on Unix if( UNIX AND NOT APPLE AND NOT ANDROID )