2023-08-16 22:26:55 +00:00
|
|
|
Add libs and paths. Ensure the lib is used for the C case.
|
|
|
|
|
|
|
|
Index: Modules/FindOpenMP.cmake
|
|
|
|
--- Modules/FindOpenMP.cmake.orig
|
|
|
|
+++ Modules/FindOpenMP.cmake
|
2024-08-02 03:25:04 +00:00
|
|
|
@@ -116,9 +116,9 @@ function(_OPENMP_FLAG_CANDIDATES LANG)
|
2023-08-16 22:26:55 +00:00
|
|
|
if(NOT OpenMP_${LANG}_FLAG)
|
|
|
|
unset(OpenMP_FLAG_CANDIDATES)
|
|
|
|
|
|
|
|
- set(OMP_FLAG_GNU "-fopenmp")
|
|
|
|
+ set(OMP_FLAG_GNU "-fopenmp -lgomp")
|
|
|
|
set(OMP_FLAG_LCC "-fopenmp")
|
|
|
|
- set(OMP_FLAG_Clang "-fopenmp=libomp" "-fopenmp=libiomp5" "-fopenmp" "-Xclang -fopenmp")
|
|
|
|
+ set(OMP_FLAG_Clang "-fopenmp -I${LOCALBASE}/include -Wl,-L${LOCALBASE}/lib,-lomp")
|
|
|
|
set(OMP_FLAG_AppleClang "-Xclang -fopenmp")
|
|
|
|
set(OMP_FLAG_HP "+Oopenmp")
|
|
|
|
if(WIN32)
|