Skip to content

Commit

Permalink
when compiling i have this warning: OpenGL_GL_PREFERENCE has not been…
Browse files Browse the repository at this point in the history
… set to "GLVND" or "LEGACY", so for compatibility with CMake 3.10 and below the legacy GL library will be used.

Policy CMP0072 says that I need to set OpenGL_GL_PREFERENCE to LEGACY.
  • Loading branch information
mosfet80 authored and darksylinc committed Feb 29, 2024
1 parent b8ae80e commit 798d1f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ if(CMAKE_VS_PLATFORM_NAME STREQUAL "Tegra-Android")
set(CMAKE_LINK_LIBRARY_FLAG "")
endif()

#fix Policy CMP0072 is not set
set(OpenGL_GL_PREFERENCE LEGACY)

# Use relative paths
# This is mostly to reduce path size for command-line limits on windows
Expand Down

0 comments on commit 798d1f9

Please sign in to comment.