mirror of
https://github.com/thunderbrewhq/system.git
synced 2026-02-03 16:39:07 +00:00
refactor(build): rename WHOA_ASSERTIONS_ENABLED compile variable to WHOA_BUILD_ASSERTIONS
This commit is contained in:
parent
569b292542
commit
cf99a6c976
1 changed files with 5 additions and 5 deletions
|
|
@ -90,15 +90,15 @@ elseif(${WHOA_SYSTEM_LINUX})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Toggle assertions
|
# Toggle assertions
|
||||||
if(NOT DEFINED WHOA_ASSERTIONS_ENABLED)
|
if(NOT DEFINED WHOA_BUILD_ASSERTIONS)
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
set(WHOA_ASSERTIONS_ENABLED 1)
|
set(WHOA_BUILD_ASSERTIONS 1)
|
||||||
else()
|
else()
|
||||||
set(WHOA_ASSERTIONS_ENABLED 0)
|
set(WHOA_BUILD_ASSERTIONS 0)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WHOA_ASSERTIONS_ENABLED)
|
if(WHOA_BUILD_ASSERTIONS)
|
||||||
add_definitions(-DWHOA_ASSERTIONS_ENABLED=1)
|
add_definitions(-DWHOA_BUILD_ASSERTIONS=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue