Fix SFIZZ_RELEASE_ASSERTS option
The SFIZZ_RELEASE_ASSERTS option was ignored and always in effect.
This commit is contained in:
parent
9d2b50fa24
commit
bb8c104b05
1 changed files with 4 additions and 2 deletions
|
|
@ -119,8 +119,10 @@ function(sfizz_enable_fast_math NAME)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(sfizz_enable_release_asserts NAME)
|
function(sfizz_enable_release_asserts NAME)
|
||||||
|
if(SFIZZ_RELEASE_ASSERTS)
|
||||||
target_compile_definitions("${NAME}" PUBLIC "SFIZZ_ENABLE_RELEASE_ASSERT=1")
|
target_compile_definitions("${NAME}" PUBLIC "SFIZZ_ENABLE_RELEASE_ASSERT=1")
|
||||||
target_compile_definitions("${NAME}" PUBLIC "SFIZZ_ENABLE_RELEASE_DBG=1")
|
target_compile_definitions("${NAME}" PUBLIC "SFIZZ_ENABLE_RELEASE_DBG=1")
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
# If we build with Clang, optionally use libc++. Enabled by default on Apple OS.
|
# If we build with Clang, optionally use libc++. Enabled by default on Apple OS.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue