Closed smu-ggl closed 1 year ago
I guess I need to add something like this right before the check_symbol_exists()
command:
include(CheckLibraryExists)
check_library_exists(m lrintf "" HAVE_LIBM)
if(HAVE_LIBM)
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
endif()
Opening this to ensure visibility.
See https://github.com/knik0/faad2/issues/188#issuecomment-1805566149 for my dive into this so far.
I can "fix" this for our use case by just removing the offending definition in libfaad/common.h, but that seems ill-advised.