|
@@ -44,6 +44,8 @@ endif()
|
|
|
|
|
|
# CMake incorrectly detects opengl32.lib being present on MSVC ARM64
|
|
# CMake incorrectly detects opengl32.lib being present on MSVC ARM64
|
|
if(NOT MSVC OR NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64")
|
|
if(NOT MSVC OR NOT CMAKE_GENERATOR_PLATFORM STREQUAL "ARM64")
|
|
|
|
+ # Prefer GLVND, if present
|
|
|
|
+ set(OpenGL_GL_PREFERENCE GLVND)
|
|
find_package(OpenGL)
|
|
find_package(OpenGL)
|
|
endif()
|
|
endif()
|
|
|
|
|