Merge topic 'FindOpenMP-clang'

1549927d FindOpenMP: Add Clang support
This commit is contained in:
Brad King
2015-12-11 09:43:51 -05:00
committed by CMake Topic Stage
2 changed files with 7 additions and 0 deletions

View File

@@ -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")