aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-06-15 08:52:47 +0200
committerThierry Bultel <thierry.bultel@iot.bzh>2018-06-15 09:07:15 +0200
commitd9ccf783d5a34eb37d5645d74ab4f8e160ee9866 (patch)
tree29bd66d8e0ef94d5216a79f746f3e8cd78d9e4d3
parent906174204ce5e1687f2725a7e3977d42d3c45fbf (diff)
cmake: added missing dependency to libusb-1.0eel_5.1.0eel/5.1.05.1.0eel
The build needs libusb-1.0. Everything foes right when building for Yocto, that already and likely has the needed things. Issue seen when building for a linux host. The missing check did not point out the need for libusb-1.0-devel Change-Id: I7440e2d9ca21232d11e5cabafc79b383092e8890 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
-rw-r--r--binding/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/binding/CMakeLists.txt b/binding/CMakeLists.txt
index c295eb0..44c5b92 100644
--- a/binding/CMakeLists.txt
+++ b/binding/CMakeLists.txt
@@ -67,6 +67,7 @@ PROJECT_TARGET_ADD(rtl_fm_helper)
endif()
PKG_CHECK_MODULES(helper_RTLSDR REQUIRED librtlsdr)
+ PKG_CHECK_MODULES(helper_LIBUSB REQUIRED libusb-1.0)
add_executable(${TARGET_NAME} ${helper_SOURCES})
@@ -77,4 +78,4 @@ PROJECT_TARGET_ADD(rtl_fm_helper)
TARGET_COMPILE_OPTIONS(${TARGET_NAME} PUBLIC ${helper_SOUND_CFLAGS})
TARGET_LINK_LIBRARIES(${TARGET_NAME}
- ${helper_RTLSDR_LIBRARIES} ${helper_SOUND_LIBRARIES} ${link_libraries} m)
+ ${helper_RTLSDR_LIBRARIES} ${helper_LIBUSB_LIBRARIES} ${helper_SOUND_LIBRARIES} ${link_libraries} m)