Skip to content

Commit 650c0fc

Browse files
authored
Support and test against HOOMD 6 (#116)
* Update pixi.lock * Test against HOOMD 6 * Require HOOMD 6 * Work around CMake version matching
1 parent 3ef36b3 commit 650c0fc

File tree

5 files changed

+851
-910
lines changed

5 files changed

+851
-910
lines changed

.github/workflows/unit-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
#############################################################################################
1010
# HOOMD-blue version to build.
11-
HOOMD_BLUE_VERSION: v5.4.0
11+
HOOMD_BLUE_VERSION: v6.0.0
1212
# prevent deadlocked MPI tests from causing the job to cancel
1313
MPIEXEC_TIMEOUT: 3000
1414
# allow mpirun to execute as root in the tests

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
CMAKE_MINIMUM_REQUIRED(VERSION 3.9 FATAL_ERROR)
1+
CMAKE_MINIMUM_REQUIRED(VERSION 3.15...3.27 FATAL_ERROR)
22

33
# Name the plugin project.
44
# TODO: Set the project title to the name of your Python package.
55
project(azplugins LANGUAGES C CXX)
66

77
# Find the installed HOOMD.
8-
find_package(HOOMD 5.0.0 REQUIRED)
9-
8+
set(HOOMD_REQUIRED_VERSION "5.0.0")
9+
find_package(HOOMD REQUIRED)
1010
message(STATUS "Found HOOMD ${HOOMD_VERSION}: ${HOOMD_INSTALL_PREFIX}/${PYTHON_SITE_INSTALL_DIR}")
11+
if(NOT HOOMD_VERSION VERSION_GREATER_EQUAL HOOMD_REQUIRED_VERSION)
12+
message(FATAL_ERROR "HOOMD >=${HOOMD_REQUIRED_VERSION} required (found ${HOOMD_VERSION}).")
13+
endif()
1114

1215
# Force installation to the HOOMD installation location.
1316
set(CMAKE_INSTALL_PREFIX ${HOOMD_INSTALL_PREFIX} CACHE PATH "Installation prefix" FORCE)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
azplugins is a component for [HOOMD-blue][1] which expands its functionality for
44
tackling a variety of problems in soft matter physics. Currently, azplugins is
5-
tested against v5.4.0 of HOOMD-blue. See [CHANGELOG.rst](CHANGELOG.rst) for a
5+
tested against v6.0.0 of HOOMD-blue. See [CHANGELOG.rst](CHANGELOG.rst) for a
66
list of recent development.
77

88
## Compiling azplugins

doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ azplugins
88

99
azplugins is a component for `HOOMD-blue`_ which expands its functionality for
1010
tackling a variety of problems in soft matter physics. Currently, azplugins is
11-
tested against v5.4.0 of HOOMD-blue.
11+
tested against v6.0.0 of HOOMD-blue.
1212

1313
Compiling
1414
=========

0 commit comments

Comments
 (0)