Skip to content

Commit

Permalink
Incorporate MrRobust's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravbug authored and lmariscal committed Feb 8, 2022
1 parent f791f48 commit cdc2da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/bgfx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if( MSVC )
endif()

# Add debug config required in bx headers since bx is private
target_compile_definitions(bgfx PUBLIC $<$<CONFIG:DEBUG>:BX_CONFIG_DEBUG=1> $<$<CONFIG:CHECKED>:BX_CONFIG_DEBUG=1> $<$<CONFIG:PROFILE>:BX_CONFIG_DEBUG=0> $<$<CONFIG:RELEASE>:BX_CONFIG_DEBUG=0>)
target_compile_definitions(bgfx PUBLIC "BX_CONFIG_DEBUG=$<CONFIG:Debug>")

# Includes
target_include_directories( bgfx
Expand Down
2 changes: 1 addition & 1 deletion cmake/bx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<CONFIG:DEBUG>:BX_CONFIG_DEBUG=1> $<$<CONFIG:CHECKED>:BX_CONFIG_DEBUG=1> $<$<CONFIG:PROFILE>:BX_CONFIG_DEBUG=0> $<$<CONFIG:RELEASE>:BX_CONFIG_DEBUG=0>)
target_compile_definitions(bx PUBLIC "BX_CONFIG_DEBUG=$<CONFIG:Debug>")

# Additional dependencies on Unix
if( UNIX AND NOT APPLE AND NOT ANDROID )
Expand Down

0 comments on commit cdc2da9

Please sign in to comment.