mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-09-15 22:27:34 +00:00
cmake: link libusb by its full path
pkg_check_modules gives both LIBUSB_LIBRARIES (bare names, -lusb-1.0) and LIBUSB_LINK_LIBRARIES (absolute paths). Passing both links libusb twice, and the bare name only resolves when libusb is in the default library search path - which it is on Linux and is not under Homebrew on macOS, where the link fails with "library not found for -lusb-1.0". The full path alone is enough everywhere.
This commit is contained in:
committed by
Dominic Radermacher
parent
15ea891fad
commit
97a9576c6e
@@ -32,7 +32,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||
${GD_LIBRARIES}
|
||||
${LIBUSB_LIBRARIES}
|
||||
${LIBUSB_LINK_LIBRARIES}
|
||||
${Intl_LIBRARIES}
|
||||
${ARGP_LIBRARIES}
|
||||
|
||||
Reference in New Issue
Block a user