diff options
author | Lucas Czech <luc@s-cze.ch> | 2017-02-23 14:27:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-23 14:59:46 (GMT) |
commit | 9dc7a2ed2cbc36d9b6a9286822020a5da2536df2 (patch) | |
tree | c32e266823a6eed71a9cf7322523a57f3de2bb6b /Modules | |
parent | 3f8e94f71effc552fd13d4d37a5ae367fe896644 (diff) | |
download | CMake-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.cmake | 1 |
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" |