Skip to content

Commit c93eaa3

Browse files
committed
Remove redundant CMake version check
1 parent 3f79bc4 commit c93eaa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ set(IMGUI_PUBLIC_HEADERS
5454
# CMake 3.11 and later prefer to choose GLVND, but we choose legacy OpenGL just because it's safer
5555
# (unless the OpenGL_GL_PREFERENCE was explicitly set)
5656
# See CMP0072 for more details (cmake --help-policy CMP0072)
57-
if((NOT ${CMAKE_VERSION} VERSION_LESS 3.11) AND (NOT OpenGL_GL_PREFERENCE))
57+
if(NOT OpenGL_GL_PREFERENCE)
5858
set(OpenGL_GL_PREFERENCE "LEGACY")
5959
endif()
6060

0 commit comments

Comments
 (0)