mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Hide UI elements when KeePassXC was compiled without -DWITH_XC_YUBIKEY
This commit is contained in:
@@ -195,13 +195,12 @@ if(NOT ZLIB_SUPPORTS_GZIP)
|
||||
endif()
|
||||
|
||||
# Optional
|
||||
find_package(YubiKey)
|
||||
if(WITH_XC_YUBIKEY)
|
||||
find_package(YubiKey REQUIRED)
|
||||
|
||||
if(YUBIKEY_FOUND)
|
||||
include_directories(SYSTEM ${YUBIKEY_INCLUDE_DIRS})
|
||||
endif()
|
||||
|
||||
|
||||
if(UNIX)
|
||||
check_cxx_source_compiles("#include <sys/prctl.h>
|
||||
int main() { prctl(PR_SET_DUMPABLE, 0); return 0; }"
|
||||
|
||||
Reference in New Issue
Block a user