openfast: patch versions to fix openmp bug. (#49631)

This commit is contained in:
Jon Rood 2025-03-21 10:06:56 -06:00 committed by GitHub
parent 5983f72439
commit ac6e534806
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2989bfe57..5fed42b44 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -110,7 +110,7 @@ include(${CMAKE_SOURCE_DIR}/cmake/set_rpath.cmake)
# OpenMP
#-------------------------------------------------------------------------------
-if (OPENMP OR BUILD_FASTFARM OR BUILD_OPENFAST_CPP_API)
+if (OPENMP)
if (OPENMP)
FIND_PACKAGE(OpenMP REQUIRED)
else()

View File

@ -46,6 +46,7 @@ class Openfast(CMakePackage):
depends_on("fortran", type="build") # generated
patch("hub_seg_fault.patch", when="@2.7:3.2")
patch("openmp.patch", when="@3.5.3:3.5.4")
variant("shared", default=True, description="Build shared libraries")
variant("double-precision", default=True, description="Treat REAL as double precision")