Skip to content

Commit

Permalink
fix: X11 support should not be enabled if partial installation is det…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
Almamu committed May 11, 2024
1 parent 953ef01 commit 0d36d6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,16 @@ if(WAYLAND_SUPPORT_FOUND)
endif()

if(X11_FOUND)
set(X11_SUPPORT_FOUND TRUE)

if(NOT X11_Xrandr_FOUND)
message(WARNING "X11 support disabled. Xrandr package is missing")
set(X11_SUPPORT_FOUND FALSE)
endif()
if(NOT X11_xf86vmode_FOUND)
message(WARNING "X11 support disabled. Xxf86vm package is missing")
set(X11_SUPPORT_FOUND FALSE)
endif()

set(X11_SUPPORT_FOUND TRUE)
endif()

if(X11_SUPPORT_FOUND)
Expand Down

0 comments on commit 0d36d6e

Please sign in to comment.