[ox/std] Make oxDebug trigger build failure if OX_NODEBUG is set to ON

This commit is contained in:
2021-03-12 01:20:49 -06:00
parent 15d169dd12
commit 582cbf2041
3 changed files with 16 additions and 6 deletions

View File

@@ -38,12 +38,11 @@ if(NOT OX_BARE_METAL)
)
endif()
if(OX_USE_STDLIB)
target_compile_definitions(
OxStd PUBLIC
OX_USE_STDLIB
)
endif()
target_compile_definitions(
OxStd PUBLIC
$<$<BOOL:${OX_USE_STDLIB}>:OX_USE_STDLIB>
$<$<BOOL:$ENV{OX_NODEBUG}>:OX_NODEBUG>
)
target_link_libraries(
OxStd PUBLIC