From f60f5a864877b9146b15b64fac73b99a13196863 Mon Sep 17 00:00:00 2001 From: Eidolon <furyhunter600@gmail.com> Date: Sat, 27 Apr 2024 21:40:41 -0500 Subject: [PATCH] Check before using -mno-ms-bitfields --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e899f99260..52f1b16301 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -408,8 +408,8 @@ endif() # Compatibility flag with later versions of GCC # We should really fix our code to not need this if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") - check_cxx_compiler_flag("-mno-ms-bitfields" HAS_MS_BITFIELDS) - if(HAS_MS_BITFIELDS) + check_cxx_compiler_flag("-mno-ms-bitfields" HAS_NO_MS_BITFIELDS) + if(HAS_NO_MS_BITFIELDS) target_compile_options(SRB2SDL2 PRIVATE -mno-ms-bitfields) endif() endif() -- GitLab