Skip to content

Commit

Permalink
Backed out changes for 5366 - cmake build doesn't detect Metal on macOS
Browse files Browse the repository at this point in the history
These changes introduce regressions for other build environments, so I'm backing them out until we sort out the correct fix.
  • Loading branch information
slouken committed Dec 9, 2020
1 parent bd032c1 commit 45e3521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1802,7 +1802,7 @@ elseif(APPLE)

if(VIDEO_VULKAN OR VIDEO_METAL OR RENDER_METAL)
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("
#include <AvailabilityMacros.h>
#import <Metal/Metal.h>
Expand Down

0 comments on commit 45e3521

Please sign in to comment.