FindOpenMP: Add support for AppleClang
This patch fixes three things:
-
CMAKE_ROOT
is used in bothinclude
statement, rather than being mixed withCMAKE_CURRENT_LIST_DIR
. - 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)
Topic-rename: FindOpenMP-AppleClang