mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 05:35:36 +00:00
cmake: fix CMP0072 warning by prefering GLVND
This commit is contained in:
parent
c90e1ec3ef
commit
ad21c70408
|
@ -44,6 +44,8 @@ endif()
|
|||
|
||||
# CMake incorrectly detects opengl32.lib being present on MSVC ARM64
|
||||
if(NOT MSVC OR NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64")
|
||||
# Prefer GLVND, if present
|
||||
set(OpenGL_GL_PREFERENCE GLVND)
|
||||
find_package(OpenGL)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue