Replaced GNU-specific--no-as-needed with CMAKE_LINK_WHAT_YOU_USE. Unfortunately cmake still doesn't do the right thing so also checked if GNU compiler is used or not
Added the include directory for LZ4 since /usr/local/* isn't included by cmake on Mac
Using the full path for linking LZ4 for same reason as #2
Not fully tested but does build on latest Mac (1.15.7) with Apple clang version 12.0.0 (clang-1200.0.32.27)
Replaced GNU-specific
--no-as-needed
withCMAKE_LINK_WHAT_YOU_USE
. Unfortunately cmake still doesn't do the right thing so also checked if GNU compiler is used or notAdded the include directory for LZ4 since
/usr/local/*
isn't included by cmake on MacUsing the full path for linking LZ4 for same reason as #2
Not fully tested but does build on latest Mac (1.15.7) with Apple clang version 12.0.0 (clang-1200.0.32.27)