cmake: Allow integers for SDL_ASSERTIONS + fix -DSDL_ASSERTIONS=0

This commit is contained in:
Anonymous Maarten
2022-06-15 06:17:59 +02:00
committed by Sam Lantinga
parent 97711e99fe
commit b5f1fe5004
2 changed files with 10 additions and 5 deletions

View File

@@ -261,7 +261,9 @@
#cmakedefine HAVE_XINPUT_STATE_EX @HAVE_XINPUT_STATE_EX@
/* SDL internal assertion support */
#if @SDL_DEFAULT_ASSERT_LEVEL_CONFIGURED@
#cmakedefine SDL_DEFAULT_ASSERT_LEVEL @SDL_DEFAULT_ASSERT_LEVEL@
#endif
/* Allow disabling of core subsystems */
#cmakedefine SDL_ATOMIC_DISABLED @SDL_ATOMIC_DISABLED@