Skip to content

Commit e454067

Browse files
dos1SiegeLord
authored andcommitted
don't require GLX when GLX is excluded
1 parent 20761e8 commit e454067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ if(SUPPORT_X11)
684684
set(OPENGL_LIBRARIES "${OPENGL_LIBRARIES}" "${OPENGL_glx_LIBRARY}")
685685
endif()
686686

687-
if (NOT OPENGL_LIBRARIES MATCHES "(libGL\\.|libGLX\\.)")
687+
if (NOT OPENGL_LIBRARIES MATCHES "(libGL\\.|libGLX\\.)" AND NOT ALLEGRO_EXCLUDE_GLX)
688688
message(FATAL_ERROR "X11 support currently requires GLX (set OPENGL_glx_LIBRARY and OpenGL_GLX_FOUND).")
689689
endif()
690690

0 commit comments

Comments
 (0)