Commit be41cf2dfe28556e44b7222a0f9214674080aab0

Ozkan Sezer 2021-07-08T21:20:02

CMake: don't blacklist TARGET_OS_SIMULATOR for Metal configuration https://github.com/libsdl-org/SDL/commit/7fa5e95b6284f2cc7855022c9f0c2b086dcee43f enabled it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 947e536..07da97a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1903,7 +1903,7 @@ elseif(APPLE)
         #import <Metal/Metal.h>
         #import <QuartzCore/CAMetalLayer.h>
 
-        #if TARGET_OS_SIMULATOR || (!TARGET_CPU_X86_64 && !TARGET_CPU_ARM64)
+        #if (!TARGET_CPU_X86_64 && !TARGET_CPU_ARM64)
         #error Metal doesn't work on this configuration
         #endif
         int main()