diff options
Diffstat (limited to 'math/openblas64/files/patch-cmake_system.cmake')
-rw-r--r-- | math/openblas64/files/patch-cmake_system.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/math/openblas64/files/patch-cmake_system.cmake b/math/openblas64/files/patch-cmake_system.cmake new file mode 100644 index 000000000000..763a00e23156 --- /dev/null +++ b/math/openblas64/files/patch-cmake_system.cmake @@ -0,0 +1,13 @@ +--- cmake/system.cmake.orig 2025-06-19 09:45:39 UTC ++++ cmake/system.cmake +@@ -380,8 +380,9 @@ if (USE_OPENMP) + # Avoid mixed OpenMP linkage + get_target_property(OMP_C_LIB OpenMP::OpenMP_C INTERFACE_LINK_LIBRARIES) + get_target_property(OMP_Fortran_LIB OpenMP::OpenMP_Fortran INTERFACE_LINK_LIBRARIES) ++# Disable this error on FreeBSD (dangerous by OK for the moment) + if (NOT OMP_C_LIB STREQUAL OMP_Fortran_LIB) +- message(FATAL_ERROR "Multiple OpenMP runtime libraries detected. Mixed OpenMP runtime linkage is dangerous. You may pass -DOpenMP_LANG_LIB_NAMES and -DOpenMP_omp_LIBRARY to manually choose the OpenMP library.") ++ message(STATUS "Multiple OpenMP runtime libraries detected. Mixed OpenMP runtime linkage is dangerous. You may pass -DOpenMP_LANG_LIB_NAMES and -DOpenMP_omp_LIBRARY to manually choose the OpenMP library.") + endif() + endif () + endif () |