knik0 / faad2

Freeware Advanced Audio (AAC) Decoder faad2 mirror
https://sourceforge.net/projects/faac/
Other
175 stars 78 forks source link

Builds on Debian i386 fail despite applying commit linked in #188 #190

Closed smu-ggl closed 1 year ago

smu-ggl commented 1 year ago

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.

fabiangreffrath commented 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()