mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 11:49:55 -06:00
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:
@@ -48,6 +48,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
||||
#GNU
|
||||
"-fopenmp"
|
||||
#Clang
|
||||
"-fopenmp=libiomp5"
|
||||
"-fopenmp=libomp"
|
||||
#Microsoft Visual Studio
|
||||
"/openmp"
|
||||
|
||||
Reference in New Issue
Block a user