FindOpenMP: Add support for AppleClang
This patch fixes three things:
CMAKE_ROOTis used in both
includestatement, rather than being mixed with
- Actually add an OpenMP function to make sure we can link to OpenMP library (like the Fortran example).
- Add a search for the correct lib when compiling with AppleClang. I've used a very similar procedure to the one used for Intel.
Fixes: #17775 (closed)