Fix SFIZZ_RELEASE_ASSERTS option

The SFIZZ_RELEASE_ASSERTS option was ignored and always in effect.
This commit is contained in:
chucknology 2024-06-20 17:00:36 -07:00 committed by Paul Ferrand
parent 9d2b50fa24
commit bb8c104b05

View file

@ -119,8 +119,10 @@ function(sfizz_enable_fast_math NAME)
endfunction()
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_DBG=1")
endif()
endfunction()
# If we build with Clang, optionally use libc++. Enabled by default on Apple OS.