We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f79bc4 commit c93eaa3Copy full SHA for c93eaa3
CMakeLists.txt
@@ -54,7 +54,7 @@ set(IMGUI_PUBLIC_HEADERS
54
# CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL just because it's safer
55
# (unless the OpenGL_GL_PREFERENCE was explicitly set)
56
# See CMP0072 for more details (cmake --help-policy CMP0072)
57
-if((NOT ${CMAKE_VERSION} VERSION_LESS 3.11) AND (NOT OpenGL_GL_PREFERENCE))
+if(NOT OpenGL_GL_PREFERENCE)
58
set(OpenGL_GL_PREFERENCE "LEGACY")
59
endif()
60
0 commit comments