diff --git a/libairspyhf/src/CMakeLists.txt b/libairspyhf/src/CMakeLists.txt index 9d8d483..da1f966 100644 --- a/libairspyhf/src/CMakeLists.txt +++ b/libairspyhf/src/CMakeLists.txt @@ -58,7 +58,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} )