mirror of https://github.com/encounter/SDL.git
cmake: enable_language(OBJC) only for APPLE
This commit is contained in:
parent
3c9ac4489e
commit
9403543671
|
@ -101,7 +101,9 @@ if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
|
||||||
endmacro()
|
endmacro()
|
||||||
else()
|
else()
|
||||||
include(CheckOBJCSourceCompiles)
|
include(CheckOBJCSourceCompiles)
|
||||||
enable_language(OBJC)
|
if (APPLE)
|
||||||
|
enable_language(OBJC)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
if(CMAKE_VERSION VERSION_LESS 3.13.0)
|
||||||
|
|
Loading…
Reference in New Issue