Skip to content

Commit 60d2149

Browse files
authored
Merge pull request #13980 from JakeOShannessy/cmake-presets-2
cmake: minor updates
2 parents 3045b6a + 8f935db commit 60d2149

File tree

4 files changed

+435
-7
lines changed

4 files changed

+435
-7
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ permissions:
3333
jobs:
3434
cmake-linux:
3535
name: ${{ matrix.container }} ${{ matrix.compiler_mpi }} openmp=${{ matrix.openmp }} ${{ matrix.build_type }}
36-
runs-on: [ubuntu-latest]
36+
runs-on: [ubuntu-24.04]
3737
container: ${{ matrix.container }}
3838
strategy:
3939
matrix:
@@ -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

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,8 @@ Validation/*/FDS_Output_Files/*.csv
9999

100100
# Verification script generated fds files
101101
Verification/Timing_Benchmarks/t*.fds
102+
103+
# Local cmake configuration
104+
CMakeUserPresets.json
105+
Build/cmakeb/
106+
.vscode/

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)