link math libraries into notcurses-demo #589

This commit is contained in:
nick black 2020-05-09 03:47:56 -04:00
parent 95c17e52b0
commit 261cfadf40
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -59,6 +59,7 @@ pkg_check_modules(SWSCALE REQUIRED libswscale>=5.0)
elseif(${USE_OIIO}) elseif(${USE_OIIO})
pkg_check_modules(OIIO REQUIRED OpenImageIO>=2.1) pkg_check_modules(OIIO REQUIRED OpenImageIO>=2.1)
endif() endif()
find_library(MATH_LIBRARIES m)
check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H) check_include_file("qrcodegen/qrcodegen.h" HAVE_QRCODEGEN_H)
if("${USE_QRCODEGEN}") if("${USE_QRCODEGEN}")
if(NOT "${HAVE_QRCODEGEN_H}") if(NOT "${HAVE_QRCODEGEN_H}")
@ -352,6 +353,7 @@ target_include_directories(notcurses-demo
target_link_libraries(notcurses-demo target_link_libraries(notcurses-demo
PRIVATE PRIVATE
notcurses notcurses
${MATH_LIBRARIES}
) )
target_compile_definitions(notcurses-demo target_compile_definitions(notcurses-demo
PRIVATE PRIVATE