mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 00:22:55 +08:00
12 lines
508 B
Diff
12 lines
508 B
Diff
--- 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>
|