diff options
author | JDBetteridge <43041811+JDBetteridge@users.noreply.github.com> | 2022-05-06 23:28:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 16:28:33 -0600 |
commit | dfdbd1151db1f3e785954802f1934d66e2748bf9 (patch) | |
tree | f33fe3a91a55d93e744565ac347ae82ae45917d8 /var | |
parent | 22f3ef0a212676a16d9ece2562dedb50de7f1999 (diff) | |
download | spack-dfdbd1151db1f3e785954802f1934d66e2748bf9.tar.gz spack-dfdbd1151db1f3e785954802f1934d66e2748bf9.tar.bz2 spack-dfdbd1151db1f3e785954802f1934d66e2748bf9.tar.xz spack-dfdbd1151db1f3e785954802f1934d66e2748bf9.zip |
Eigen: turn on BUILD_TESTING for build to complete (#30528)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/eigen/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eigen/package.py b/var/spack/repos/builtin/packages/eigen/package.py index 552827ed43..d0e7435ede 100644 --- a/var/spack/repos/builtin/packages/eigen/package.py +++ b/var/spack/repos/builtin/packages/eigen/package.py @@ -56,6 +56,14 @@ class Eigen(CMakePackage): def setup_run_environment(self, env): env.prepend_path('CPATH', self.prefix.include.eigen3) + def cmake_args(self): + args = [] + if self.spec.satisfies('@:3.4'): + # CMake fails without this flag + # https://gitlab.com/libeigen/eigen/-/issues/1656 + args += [self.define('BUILD_TESTING', 'ON')] + return args + @property def headers(self): headers = find_all_headers(self.prefix.include) |