mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Don't search for OpenGL when linking statically on Android
This commit is contained in:
parent
025a9ddc53
commit
f582f05365
@ -15,6 +15,8 @@ if(SFML_STATIC_LIBRARIES)
|
|||||||
endif()
|
endif()
|
||||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
set(FIND_SFML_OS_FREEBSD 1)
|
set(FIND_SFML_OS_FREEBSD 1)
|
||||||
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Android")
|
||||||
|
set(FIND_SFML_OS_ANDROID 1)
|
||||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "iOS")
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "iOS")
|
||||||
set(FIND_SFML_OS_IOS 1)
|
set(FIND_SFML_OS_IOS 1)
|
||||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
@ -41,7 +43,7 @@ if(SFML_STATIC_LIBRARIES)
|
|||||||
find_dependency(UDev)
|
find_dependency(UDev)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT FIND_SFML_OS_IOS)
|
if(NOT FIND_SFML_OS_ANDROID AND NOT FIND_SFML_OS_IOS)
|
||||||
if(NOT OpenGL_GL_PREFERENCE)
|
if(NOT OpenGL_GL_PREFERENCE)
|
||||||
set(OpenGL_GL_PREFERENCE "LEGACY")
|
set(OpenGL_GL_PREFERENCE "LEGACY")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user