openfast: patch versions to fix openmp bug. (#49631)
This commit is contained in:
parent
5983f72439
commit
ac6e534806
13
var/spack/repos/builtin/packages/openfast/openmp.patch
Normal file
13
var/spack/repos/builtin/packages/openfast/openmp.patch
Normal 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()
|
@ -46,6 +46,7 @@ class Openfast(CMakePackage):
|
|||||||
depends_on("fortran", type="build") # generated
|
depends_on("fortran", type="build") # generated
|
||||||
|
|
||||||
patch("hub_seg_fault.patch", when="@2.7:3.2")
|
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("shared", default=True, description="Build shared libraries")
|
||||||
variant("double-precision", default=True, description="Treat REAL as double precision")
|
variant("double-precision", default=True, description="Treat REAL as double precision")
|
||||||
|
Loading…
Reference in New Issue
Block a user