Ease development with dirty dependency directory

This commit is contained in:
WarmUpTill
2025-06-15 14:07:17 +02:00
committed by WarmUpTill
parent 20488afdd1
commit 7e91f81957
3 changed files with 11 additions and 2 deletions

View File

@@ -77,13 +77,14 @@ if(NOT libusb_HEADER_DIR)
"libusb sources are available under: ${libusb_DEPS_DIR}")
return()
endif()
if(NOT libusb_LINK_LIBRARIES)
if(NOT libusb_LINK_LIBRARIES OR NOT EXISTS "${libusb_LINK_LIBRARIES}")
message(WARNING "libusb library not found. Make sure libusb is installed. "
"USB condition will be disabled!\n\n"
"libusb sources are available under: ${libusb_DEPS_DIR}")
return()
endif()
if(NOT OS_LINUX AND NOT libusb_RUNTIME_LIBRARY)
if(NOT OS_LINUX AND (NOT libusb_RUNTIME_LIBRARY OR NOT EXISTS
"${libusb_RUNTIME_LIBRARY}"))
message(
WARNING "libusb runtime library not found. Make sure libusb is installed. "
"USB condition will be disabled!\n\n"