fix CheckCOCOA on modern CMake

Modern CMake doesn't need "LANGUAGE C" for Objective-C
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C) should be removed fro video/cocoa/*.m as well otherwise project won't compile
see also d3cc5764c0
This commit is contained in:
ShuangLiu1992 2022-05-09 18:35:50 +01:00 committed by Sam Lantinga
parent 1f48f8cd28
commit f4fc4719a5
1 changed files with 0 additions and 1 deletions

View File

@ -711,7 +711,6 @@ macro(CheckCOCOA)
endif()
if(HAVE_COCOA)
file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
set_source_files_properties(${COCOA_SOURCES} PROPERTIES LANGUAGE C)
set(SOURCE_FILES ${SOURCE_FILES} ${COCOA_SOURCES})
set(SDL_VIDEO_DRIVER_COCOA 1)
set(HAVE_SDL_VIDEO TRUE)