From 9dc7a2ed2cbc36d9b6a9286822020a5da2536df2 Mon Sep 17 00:00:00 2001 From: Lucas Czech Date: Thu, 23 Feb 2017 15:27:29 +0100 Subject: 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. --- Modules/FindOpenMP.cmake | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v0.12