Skip to content

Commit 91cdc97

Browse files
Jake O'ShannessyJakeOShannessy
authored andcommitted
cmake: use latest hyper
Update CMakeLists.txt to point to a new revision of hypre that includes the patch to HYPRE_FMANGLE. This also forces the use of HYPRE_FMANGLE on windows.
1 parent d07f923 commit 91cdc97

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
- name: build fds
272272
run: |
273273
call Build\Scripts\setup_intel_compilers.bat
274-
cmake -B builddir -S . -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DUSE_SUNDIALS=OFF -DUSE_HYPRE=ON -DHYPRE_FMANGLE=4 -DUSE_OPENMP=${{matrix.openmp}}
274+
cmake -B builddir -S . -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DUSE_SUNDIALS=OFF -DUSE_HYPRE=ON -DUSE_OPENMP=${{matrix.openmp}}
275275
cmake --build builddir -j --target fds
276276
277277
- name: Test

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,16 +151,17 @@ if(USE_HYPRE)
151151
set(HYPRE_GIT_VERSION "2.32.0" )
152152
FetchContent_Declare(
153153
HYPRE
154-
# GIT_REPOSITORY https://github.com/hypre-space/hypre.git
155-
# GIT_TAG b6d8c3085af64988f8f8bc21b7aef12ab49c5430 # v${HYPRE_GIT_VERSION}
156-
154+
GIT_REPOSITORY https://github.com/hypre-space/hypre.git
157155
# Currently we need to refer directly to a commit which contains a
158156
# patch to handle HYPRE_FMANGLE
159-
GIT_REPOSITORY https://github.com/JakeOShannessy/hypre.git
160-
GIT_TAG b6d8c3085af64988f8f8bc21b7aef12ab49c5430 # v2.32.0
157+
GIT_TAG 6d01417697aa84d118eb1e1eb91315df42575be5 # v${HYPRE_GIT_VERSION}
161158
SOURCE_SUBDIR src
162159
OVERRIDE_FIND_PACKAGE
163160
)
161+
# Set some options for building hypre
162+
if (WIN32)
163+
set(HYPRE_ENABLE_FMANGLE CAPS)
164+
endif()
164165
FetchContent_MakeAvailable(HYPRE)
165166
endif()
166167

0 commit comments

Comments
 (0)