build: new build option BUILD_X11 to control building of X11 backend

This commit is contained in:
sithlord48
2025-11-13 11:48:30 -05:00
committed by Nick Bolton
parent f45df39032
commit 4a67694676
7 changed files with 48 additions and 37 deletions

View File

@ -145,7 +145,9 @@ macro(configure_unix_libs)
add_definitions(-DWINAPI_CARBON=1)
else()
configure_xorg_libs()
if (BUILD_X11_SUPPORT)
configure_xorg_libs()
endif()
include(FindPkgConfig)
find_package(PkgConfig)