FindOpenMP: Add Clang support
This commit is contained in:
parent
fc6c5074e8
commit
1549927d7d
|
@ -0,0 +1,4 @@
|
||||||
|
FindOpenMP-clang
|
||||||
|
----------------
|
||||||
|
|
||||||
|
* The :module:`FindOpenMP` module learned to support Clang.
|
|
@ -50,6 +50,8 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
||||||
" "
|
" "
|
||||||
#GNU
|
#GNU
|
||||||
"-fopenmp"
|
"-fopenmp"
|
||||||
|
#Clang
|
||||||
|
"-fopenmp=libomp"
|
||||||
#Microsoft Visual Studio
|
#Microsoft Visual Studio
|
||||||
"/openmp"
|
"/openmp"
|
||||||
#Intel windows
|
#Intel windows
|
||||||
|
@ -67,6 +69,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
||||||
)
|
)
|
||||||
|
|
||||||
set(OMP_FLAG_GNU "-fopenmp")
|
set(OMP_FLAG_GNU "-fopenmp")
|
||||||
|
set(OMP_FLAG_Clang "-fopenmp=libomp")
|
||||||
set(OMP_FLAG_HP "+Oopenmp")
|
set(OMP_FLAG_HP "+Oopenmp")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(OMP_FLAG_Intel "-Qopenmp")
|
set(OMP_FLAG_Intel "-Qopenmp")
|
||||||
|
|
Loading…
Reference in New Issue