airspyhf/airspyhf-fix-libm-linking.patch

14 lines
584 B
Diff

diff --git a/libairspyhf/src/CMakeLists.txt b/libairspyhf/src/CMakeLists.txt
index 2ab698b..21be9ed 100644
--- a/libairspyhf/src/CMakeLists.txt
+++ b/libairspyhf/src/CMakeLists.txt
@@ -63,7 +63,7 @@ set_target_properties(airspyhf PROPERTIES CLEAN_DIRECT_OUTPUT 1)
set_target_properties(airspyhf-static PROPERTIES CLEAN_DIRECT_OUTPUT 1)
# Dependencies
-target_link_libraries(airspyhf ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
+target_link_libraries(airspyhf ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} m)
# For cygwin just force UNIX OFF and WIN32 ON
if( ${CYGWIN} )