Skip to content
Snippets Groups Projects
Commit 1549927d authored by Chris Pavlina's avatar Chris Pavlina Committed by Brad King
Browse files

FindOpenMP: Add Clang support

parent fc6c5074
No related branches found
No related tags found
No related merge requests found
FindOpenMP-clang
----------------
* The :module:`FindOpenMP` module learned to support Clang.
......@@ -50,6 +50,8 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
" "
#GNU
"-fopenmp"
#Clang
"-fopenmp=libomp"
#Microsoft Visual Studio
"/openmp"
#Intel windows
......@@ -67,6 +69,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
)
set(OMP_FLAG_GNU "-fopenmp")
set(OMP_FLAG_Clang "-fopenmp=libomp")
set(OMP_FLAG_HP "+Oopenmp")
if(WIN32)
set(OMP_FLAG_Intel "-Qopenmp")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment