From 4bc27ad15e498d8bacf7c29107a6144ae22096c6 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Sat, 4 Apr 2026 15:24:05 +0200 Subject: [PATCH] CMake: Replace CMAKE_COMPILER_IS_GNUCC with CMAKE_C_COMPILER_ID CMAKE_COMPILER_IS_GNUCC is obsolete variable and can be replaced with CMAKE_C_COMPILER_ID (also available since early CMake versions). In the past CMake versions also LCC and QCC compilers had this varible set to boolean true but these aren't relevant here. (cherry picked from commit 25aa1c643f53bc3f1901d1725e48c7d054c40053) --- cmake/sdlcompilers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/sdlcompilers.cmake b/cmake/sdlcompilers.cmake index ab62c5012e..cd4dde0f6f 100644 --- a/cmake/sdlcompilers.cmake +++ b/cmake/sdlcompilers.cmake @@ -11,7 +11,7 @@ macro(SDL_DetectCompiler) if(MSVC) set(MSVC_CLANG TRUE) endif() - elseif(CMAKE_COMPILER_IS_GNUCC) + elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU") set(USE_GCC TRUE) elseif(CMAKE_C_COMPILER_ID MATCHES "^Intel$") set(USE_INTELCC TRUE)