diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index 28b0906510..859840a525 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -435,7 +435,7 @@ def cmake_args(self): True)) if '+x+opengl' in self.spec: - ftgl_prefix = self.spec('ftgl').prefix + ftgl_prefix = self.spec['ftgl'].prefix options.append(define('FTGL_ROOT_DIR', ftgl_prefix)) options.append(define('FTGL_INCLUDE_DIR', ftgl_prefix.include)) if '+python' in self.spec: