mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
Backed out changes for 5366 - cmake build doesn't detect Metal on macOS
These changes introduce regressions for other build environments, so I'm backing them out until we sort out the correct fix.
This commit is contained in:
parent
bd032c1f72
commit
45e3521d0d
@ -1802,7 +1802,7 @@ elseif(APPLE)
|
|||||||
|
|
||||||
if(VIDEO_VULKAN OR VIDEO_METAL OR RENDER_METAL)
|
if(VIDEO_VULKAN OR VIDEO_METAL OR RENDER_METAL)
|
||||||
set(ORIG_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
set(ORIG_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
||||||
set(CMAKE_REQUIRED_FLAGS "-x objective-c ${CMAKE_REQUIRED_FLAGS}")
|
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -ObjC")
|
||||||
check_c_source_compiles("
|
check_c_source_compiles("
|
||||||
#include <AvailabilityMacros.h>
|
#include <AvailabilityMacros.h>
|
||||||
#import <Metal/Metal.h>
|
#import <Metal/Metal.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user