diff options
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) |