flann-lib / flann

Fast Library for Approximate Nearest Neighbors
http://people.cs.ubc.ca/~mariusm/flann
Other
2.21k stars 646 forks source link

Updated for latest macosx #470

Open johnhe4 opened 3 years ago

johnhe4 commented 3 years ago
  1. 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

  2. Added the include directory for LZ4 since /usr/local/* isn't included by cmake on Mac

  3. 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)