diff options
author | Cameron Smith <cwsmith@users.noreply.github.com> | 2018-05-14 19:19:46 -0400 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-05-14 18:19:46 -0500 |
commit | 3a7fadd67e881af6b6cf3d2588dcec6ced6b2c8e (patch) | |
tree | dcf3c10cac7cfc89c802a46bcb1c6099707a15eb | |
parent | 34a2d35e50f88679f8c98285c1a4c4d2391c6311 (diff) | |
download | spack-3a7fadd67e881af6b6cf3d2588dcec6ced6b2c8e.tar.gz spack-3a7fadd67e881af6b6cf3d2588dcec6ced6b2c8e.tar.bz2 spack-3a7fadd67e881af6b6cf3d2588dcec6ced6b2c8e.tar.xz spack-3a7fadd67e881af6b6cf3d2588dcec6ced6b2c8e.zip |
prenek missing X.h (#8121)
-rw-r--r-- | var/spack/repos/builtin/packages/nek5000/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nek5000/package.py b/var/spack/repos/builtin/packages/nek5000/package.py index 2ea0654a2b..b18d220bb1 100644 --- a/var/spack/repos/builtin/packages/nek5000/package.py +++ b/var/spack/repos/builtin/packages/nek5000/package.py @@ -85,6 +85,7 @@ class Nek5000(Package): depends_on('libx11', when="+postnek") # libxt is needed for X11/Intrinsic.h but not for linking depends_on('libxt', when="+prenek") + depends_on('xproto', when="+prenek") depends_on('libxt', when="+postnek") depends_on('visit', when="+visit") @@ -125,6 +126,14 @@ class Nek5000(Package): raise RuntimeError('Xlib.h not found in %s' % spec['libx11'].prefix.include) cflags += ['-I%s' % os.path.dirname(libx11_h.directories[0])] + + xproto_h = find_headers('X', spec['xproto'].prefix.include, + recursive=True) + if not xproto_h: + raise RuntimeError('X.h not found in %s' % + spec['xproto'].prefix.include) + cflags += ['-I%s' % os.path.dirname(xproto_h.directories[0])] + libxt_h = find_headers('Intrinsic', spec['libxt'].prefix.include, recursive=True) if not libxt_h: |