mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2026-11-01 00:30:18 +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:
1 parent
15ea891fad
commit
97a9576c6e
1 file changed
-1
@@ -32,7 +32,6 @@ target_include_directories(${PROJECT_NAME} PUBLIC
|
|||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE
|
target_link_libraries(${PROJECT_NAME} PRIVATE
|
||||||
${GD_LIBRARIES}
|
${GD_LIBRARIES}
|
||||||
${LIBUSB_LIBRARIES}
|
|
||||||
${LIBUSB_LINK_LIBRARIES}
|
${LIBUSB_LINK_LIBRARIES}
|
||||||
${Intl_LIBRARIES}
|
${Intl_LIBRARIES}
|
||||||
${ARGP_LIBRARIES}
|
${ARGP_LIBRARIES}
|
||||||
|
|||||||
Reference in new issue
Block a user