diff --git a/var/spack/repos/builtin/packages/gnuplot/package.py b/var/spack/repos/builtin/packages/gnuplot/package.py index 9fb79e6746..59e527fcde 100644 --- a/var/spack/repos/builtin/packages/gnuplot/package.py +++ b/var/spack/repos/builtin/packages/gnuplot/package.py @@ -122,7 +122,7 @@ def configure_args(self): options.append('--with-qt=no') if '+wx' in spec: - options.append('--with-wx=%s' % spec['wx'].prefix) + options.append('--with-wx=%s' % spec['wxwidgets'].prefix) else: options.append('--disable-wxwidgets')