Fix asserts in Debug mode

This commit is contained in:
Luke Street 2022-06-03 01:22:51 -04:00
parent f223c5af9f
commit 369c345a2d
1 changed files with 1 additions and 1 deletions

View File

@ -207,7 +207,7 @@ target_include_directories(dawn_internal_config INTERFACE
target_link_libraries(dawn_internal_config INTERFACE dawn_public_config)
# Compile definitions for the internal config
if (DAWN_ALWAYS_ASSERT OR $<CONFIG:Debug>)
if (DAWN_ALWAYS_ASSERT OR CMAKE_BUILD_TYPE STREQUAL Debug)
target_compile_definitions(dawn_internal_config INTERFACE "DAWN_ENABLE_ASSERTS")
endif()
if (DAWN_ENABLE_D3D12)