cmake: don't reset check state after pushing state

This commit is contained in:
Anonymous Maarten committed 2022-11-24 23:33:54 +01:00
1 parent 67f31a19a8
commit cd13600944
4 files changed
+12 -11

No files matched your search

+2 -2
View File
@@ -148,7 +148,7 @@ if(APPLE)
testutils.c
)
cmake_push_check_state(RESET)
cmake_push_check_state()
check_c_compiler_flag(-Wno-error=deprecated-declarations HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
cmake_pop_check_state()
if(HAVE_WNO_ERROR_DEPRECATED_DECLARATIONS)
@@ -191,7 +191,7 @@ add_sdl_test_executable(controllermap NEEDS_RESOURCES controllermap.c testutils.
add_sdl_test_executable(testvulkan testvulkan.c)
add_sdl_test_executable(testoffscreen testoffscreen.c)
cmake_push_check_state(RESET)
cmake_push_check_state()
check_c_compiler_flag(-Wformat-overflow HAVE_WFORMAT_OVERFLOW)
if(HAVE_WFORMAT_OVERFLOW)