summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Eric Irrgang <mei2n@virginia.edu>2021-02-11 17:52:32 +0300
committerGitHub <noreply@github.com>2021-02-11 14:52:32 +0000
commitdea933418956076b25476233c1465e5cb73beb1d (patch)
tree429436c3ded6bf2d56a068c0ccde948497f4bd35
parentfd8eac7052a58e7d51a096b8bd562faa406e027b (diff)
downloadspack-dea933418956076b25476233c1465e5cb73beb1d.tar.gz
spack-dea933418956076b25476233c1465e5cb73beb1d.tar.bz2
spack-dea933418956076b25476233c1465e5cb73beb1d.tar.xz
spack-dea933418956076b25476233c1465e5cb73beb1d.zip
Apply compiler filters to GROMACS installation. (#21621)
The GROMACS package embeds references to its build tool chain. Use the Spack utilities to make sure these references are correct outside of the isolated Spack build environment.
-rw-r--r--var/spack/repos/builtin/packages/gromacs/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py
index 86ae7d719a..e273efedb8 100644
--- a/var/spack/repos/builtin/packages/gromacs/package.py
+++ b/var/spack/repos/builtin/packages/gromacs/package.py
@@ -3,6 +3,8 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import os
+
class Gromacs(CMakePackage):
"""GROMACS (GROningen MAchine for Chemical Simulations) is a molecular
@@ -117,6 +119,13 @@ class Gromacs(CMakePackage):
patch('gmxDetectCpu-cmake-3.14.patch', when='@2018:2019.3^cmake@3.14.0:')
patch('gmxDetectSimd-cmake-3.14.patch', when='@:2017.99^cmake@3.14.0:')
+ filter_compiler_wrappers(
+ '*.cmake',
+ relative_root=os.path.join('share', 'cmake', 'gromacs_mpi'))
+ filter_compiler_wrappers(
+ '*.cmake',
+ relative_root=os.path.join('share', 'cmake', 'gromacs'))
+
def patch(self):
if '+plumed' in self.spec:
self.spec['plumed'].package.apply_patch(self)