Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use CheckSymbolExists to verify existence of lgamma_r
Using CheckSourceCompiles doesn't actually test linking. CheckSymbolExists does. On MacOS, it seems that lgamma_r needs _REENTRANT macro to defined to the thread-safe version of lgamma to be visible, so we make the check by making use of CMAKE_REQUIRED_DEFINITIONS.
- Loading branch information