SDL: cmake: enable_language(OBJC) only for APPLE

From 9403543671112f10cf64b004e90aea16fc8d20d6 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sat, 5 Feb 2022 18:50:00 +0300
Subject: [PATCH] cmake: enable_language(OBJC) only for APPLE

---
 cmake/macros.cmake | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmake/macros.cmake b/cmake/macros.cmake
index c284c5e2fd4..62621ddfa53 100644
--- a/cmake/macros.cmake
+++ b/cmake/macros.cmake
@@ -101,7 +101,9 @@ if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
   endmacro()
 else()
   include(CheckOBJCSourceCompiles)
-  enable_language(OBJC)
+  if (APPLE)
+      enable_language(OBJC)
+  endif()
 endif()
 
 if(CMAKE_VERSION VERSION_LESS 3.13.0)