Make X11 optional

This commit is contained in:
Martchus 2023-10-11 18:11:07 +02:00
parent 91b9eed2d0
commit d546777f8c
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ if (WIN32)
set(HAVE_PLATFORM_SPECIFIC_CAPSLOCK_DETECTION ON)
else ()
include(3rdParty)
use_package(TARGET_NAME X11::X11 PACKAGE_NAME X11)
use_package(TARGET_NAME X11::X11 PACKAGE_NAME X11 OPTIONAL)
if (TARGET X11::X11)
set_property(
SOURCE enterpassworddialog/enterpassworddialog.cpp