From 892ae2043f00dae2cd371f150bee994c3e83e63a Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sat, 8 Dec 2018 03:13:40 +0100 Subject: Fix Catch2 Single Header (#10022) Fix the install of the single header amalgate in catch2. The public API for catch < 2.3.0 was "#include ". For 2.3.0+ it is "#include " --- var/spack/repos/builtin/packages/catch/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/catch/package.py b/var/spack/repos/builtin/packages/catch/package.py index 0db27a853d..557f135bf7 100644 --- a/var/spack/repos/builtin/packages/catch/package.py +++ b/var/spack/repos/builtin/packages/catch/package.py @@ -63,6 +63,9 @@ class Catch(CMakePackage): @when('+single_header') def install(self, spec, prefix): mkdirp(prefix.include) - install(join_path('single_include', 'catch.hpp'), prefix.include) + if spec.satisfies('@2.3.0:'): + install_tree('single_include', prefix.include) + else: + install(join_path('single_include', 'catch.hpp'), prefix.include) # fakes out spack so it installs a module file mkdirp(join_path(prefix, 'bin')) -- cgit v1.2.3-60-g2f50