FindOpenMP: Add iomp5 variant of Clang OpenMP flags

Try `-fopenmp=libiomp5` in addition to `-fopenmp=libomp`.  Leave the
latter as the default that we try first when the compiler id is `Clang`.
If that does not work we will still fall back to trying all the
candidates and eventually get to the iomp5 variant.
This commit is contained in:
Lucas Czech
2017-02-23 15:27:29 +01:00
committed by Brad King
parent 3f8e94f71e
commit 9dc7a2ed2c

View File

@@ -48,6 +48,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
#GNU
"-fopenmp"
#Clang
"-fopenmp=libiomp5"
"-fopenmp=libomp"
#Microsoft Visual Studio
"/openmp"