mirror of
https://github.com/bkaradzic/bgfx.cmake.git
synced 2026-02-17 21:12:35 +01:00
Incorporate MrRobust's suggestion
This commit is contained in:
@@ -66,7 +66,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
|
||||
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user