summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorLucas Czech <luc@s-cze.ch>2017-02-23 14:27:29 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-23 14:59:46 (GMT)
commit9dc7a2ed2cbc36d9b6a9286822020a5da2536df2 (patch)
treec32e266823a6eed71a9cf7322523a57f3de2bb6b /Modules
parent3f8e94f71effc552fd13d4d37a5ae367fe896644 (diff)
downloadCMake-9dc7a2ed2cbc36d9b6a9286822020a5da2536df2.zip
CMake-9dc7a2ed2cbc36d9b6a9286822020a5da2536df2.tar.gz
CMake-9dc7a2ed2cbc36d9b6a9286822020a5da2536df2.tar.bz2
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.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenMP.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindOpenMP.cmake b/Modules/FindOpenMP.cmake
index 2ee9439..f399836 100644
--- a/Modules/FindOpenMP.cmake
+++ b/Modules/FindOpenMP.cmake
@@ -48,6 +48,7 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
#GNU
"-fopenmp"
#Clang
+ "-fopenmp=libiomp5"
"-fopenmp=libomp"
#Microsoft Visual Studio
"/openmp"