mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-03-17 20:06:17 -04:00
cmake: emit warning if X11_Xi or X11_XTest not found
at least on Debian, a bullseye installation, the X11 development files may be installed without the libxi-dev or the libxtest-dev packages. this leads to the autotype shared library libkeepassxc-autotype-xcb.so not being built without any complaint from cmake. this commit makes cmake emit warning messages that shall hint anyone building themselves that autotype will not work without these libs. cmake: make libxi and libxtst a requirement with autotype enabled
This commit is contained in:
parent
d954519e10
commit
c4f625a3d1
@ -1,16 +1,14 @@
|
||||
if(WITH_XC_AUTOTYPE)
|
||||
if(UNIX AND NOT APPLE AND NOT HAIKU)
|
||||
find_package(X11)
|
||||
find_package(Qt5X11Extras 5.2)
|
||||
find_package(X11 REQUIRED COMPONENTS Xi XTest)
|
||||
find_package(Qt5X11Extras 5.2 REQUIRED)
|
||||
if(PRINT_SUMMARY)
|
||||
add_feature_info(libXi X11_Xi_FOUND "The X11 Xi Protocol library is required for auto-type")
|
||||
add_feature_info(libXtst X11_XTest_FOUND "The X11 XTEST Protocol library is required for auto-type")
|
||||
add_feature_info(Qt5X11Extras Qt5X11Extras_FOUND "The Qt5X11Extras library is required for auto-type")
|
||||
endif()
|
||||
|
||||
if(X11_FOUND AND X11_Xi_FOUND AND X11_XTest_FOUND AND Qt5X11Extras_FOUND)
|
||||
add_subdirectory(xcb)
|
||||
endif()
|
||||
add_subdirectory(xcb)
|
||||
elseif(APPLE)
|
||||
add_subdirectory(mac)
|
||||
elseif(WIN32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user