mirror of https://github.com/encounter/SDL.git
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:
parent
1f48f8cd28
commit
f4fc4719a5
|
@ -711,7 +711,6 @@ macro(CheckCOCOA)
|
||||||
endif()
|
endif()
|
||||||
if(HAVE_COCOA)
|
if(HAVE_COCOA)
|
||||||
file(GLOB COCOA_SOURCES ${SDL2_SOURCE_DIR}/src/video/cocoa/*.m)
|
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(SOURCE_FILES ${SOURCE_FILES} ${COCOA_SOURCES})
|
||||||
set(SDL_VIDEO_DRIVER_COCOA 1)
|
set(SDL_VIDEO_DRIVER_COCOA 1)
|
||||||
set(HAVE_SDL_VIDEO TRUE)
|
set(HAVE_SDL_VIDEO TRUE)
|
||||||
|
|
Loading…
Reference in New Issue