diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c1550bc3..9f28958de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 #import