MINGW-packages/mingw-w64-openblas/006-find-openmp-before-usage.patch
مهدي شينون (Mehdi Chinoune) e29b337646 openblas: Fix CMake config file.
2025-06-22 07:10:18 +01:00

17 lines
445 B
Diff

--- a/cmake/OpenBLASConfig.cmake.in
+++ b/cmake/OpenBLASConfig.cmake.in
@@ -48,9 +48,13 @@
set(PN OpenBLAS)
+include(CMakeFindDependencyMacro)
+
# need to check that the @USE_*@ evaluate to something cmake can perform boolean logic upon
if(@USE_OPENMP@)
set(${PN}_openmp_FOUND 1)
+ enable_language(C Fortran)
+ find_dependency(OpenMP COMPONENTS C Fortran REQUIRED)
elseif(@USE_THREAD@)
set(${PN}_pthread_FOUND 1)
else()