vcpkg/ports/sdl2/0008-fix-macos-metal-test.patch

12 lines
508 B
Diff
Raw Normal View History

--- CMakeLists.txt.orig 2020-11-05 16:48:40.000000000 -0800
+++ CMakeLists.txt 2020-11-05 16:49:02.000000000 -0800
@@ -1701,7 +1701,7 @@
if(VIDEO_VULKAN OR VIDEO_METAL OR RENDER_METAL)
set(ORIG_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
- set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -x objective-c")
+ set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -ObjC")
check_c_source_compiles("
#include <AvailabilityMacros.h>
#import <Metal/Metal.h>