Explorar o código

cmake: fix CMP0072 warning by prefering GLVND

Anonymous Maarten %!s(int64=3) %!d(string=hai) anos
pai
achega
ad21c70408
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      test/CMakeLists.txt

+ 2 - 0
test/CMakeLists.txt

@@ -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()