diff options
author | Chris Pavlina <pavlina.chris@gmail.com> | 2015-12-10 15:40:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-12-10 19:19:35 (GMT) |
commit | 1549927d7dc29476ada7b0c0867e9630ebe6ea00 (patch) | |
tree | 5c787442ffeccf0ae1433bfa2c75f73731fe4e48 /Modules/FindOpenMP.cmake | |
parent | fc6c5074e800fb7fe3f829564d7a7e284133cdd9 (diff) | |
download | CMake-1549927d7dc29476ada7b0c0867e9630ebe6ea00.zip CMake-1549927d7dc29476ada7b0c0867e9630ebe6ea00.tar.gz CMake-1549927d7dc29476ada7b0c0867e9630ebe6ea00.tar.bz2 |
FindOpenMP: Add Clang support
Diffstat (limited to 'Modules/FindOpenMP.cmake')
-rw-r--r-- | Modules/FindOpenMP.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake index a102c66..ee4bdd6 100644 --- a/Modules/FindOpenMP.cmake +++ b/Modules/FindOpenMP.cmake @@ -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") |