X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/284d361e208680e22631220a2e0aa8860633fa52..500e15607006dbf85cb9f725cfaf650999b9a187:/src/CMakeLists.txt?ds=inline diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bec1d5c..e09a282 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -22,8 +22,10 @@ endif() install(TARGETS am7xxx-static DESTINATION "${CMAKE_INSTALL_PREFIX}/lib") -target_link_libraries(am7xxx ${LIBUSB_1_LIBRARIES}) -target_link_libraries(am7xxx-static ${LIBUSB_1_LIBRARIES}) +find_library(MATH_LIB m) + +target_link_libraries(am7xxx ${MATH_LIB} ${LIBUSB_1_LIBRARIES}) +target_link_libraries(am7xxx-static ${MATH_LIB} ${LIBUSB_1_LIBRARIES}) # Install the header files install(FILES "am7xxx.h"