mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-01 14:22:51 -08:00
Fix CMakeFiles for BSDs
This commit is contained in:
1 parent
89e4b146bc
commit
703855bec3
3 files changed
+9
-5
No files matched your search
+4
-2
@@ -499,12 +499,14 @@ find_package(PCSC REQUIRED)
|
||||
include_directories(SYSTEM ${PCSC_INCLUDE_DIRS})
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
find_library(LIBUSB_LIBRARIES NAMES usb-1.0 REQUIRED)
|
||||
find_library(LIBUSB_LIBRARIES NAMES usb-1.0 usb REQUIRED)
|
||||
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h PATH_SUFFIXES "libusb-1.0" "libusb" REQUIRED)
|
||||
include_directories(SYSTEM ${LIBUSB_INCLUDE_DIR})
|
||||
|
||||
# For PolKit QuickUnlock
|
||||
find_library(KEYUTILS_LIBRARIES NAMES keyutils REQUIRED)
|
||||
if("${CMAKE_SYSTEM}" MATCHES "Linux")
|
||||
find_library(KEYUTILS_LIBRARIES NAMES keyutils REQUIRED)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Find zxcvbn or use the bundled version
|
||||
|
||||
+3
-1
@@ -336,7 +336,6 @@ target_link_libraries(keepassxc_core
|
||||
${ZLIB_LIBRARIES}
|
||||
${MINIZIP_LIBRARIES}
|
||||
${ARGON2_LIBRARIES}
|
||||
${KEYUTILS_LIBRARIES}
|
||||
${thirdparty_LIBRARIES})
|
||||
|
||||
# GUI Library Definition
|
||||
@@ -363,6 +362,9 @@ if(HAIKU)
|
||||
endif()
|
||||
if(UNIX AND NOT APPLE)
|
||||
target_link_libraries(keepassxc_core Qt5::DBus ${LIBUSB_LIBRARIES})
|
||||
if("${CMAKE_SYSTEM}" MATCHES "Linux")
|
||||
target_link_libraries(keepassxc_core ${KEYUTILS_LIBRARIES})
|
||||
endif()
|
||||
if(WITH_X11)
|
||||
target_link_libraries(keepassxc_gui Qt5::X11Extras X11)
|
||||
endif()
|
||||
|
||||
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2021 KeePassXC Team <[email protected]>
|
||||
# Copyright (C) 2026 KeePassXC Team <[email protected]>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -29,7 +29,7 @@ elseif(UNIX AND NOT APPLE)
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
find_library(LIBUSB_LIBRARY NAMES usb-1.0)
|
||||
find_library(LIBUSB_LIBRARY NAMES usb-1.0 usb)
|
||||
find_path(LIBUSB_INCLUDE_DIR NAMES libusb.h PATH_SUFFIXES "libusb-1.0" "libusb")
|
||||
if(NOT LIBUSB_LIBRARY OR NOT LIBUSB_INCLUDE_DIR)
|
||||
message(FATAL_ERROR "libusb-1.0 dev package required, but not found")
|
||||
|
||||
Reference in new issue
Block a user