diff --git a/var/spack/repos/builtin/packages/gmsh/package.py b/var/spack/repos/builtin/packages/gmsh/package.py index 636abe009602b4..eca554434d3bee 100644 --- a/var/spack/repos/builtin/packages/gmsh/package.py +++ b/var/spack/repos/builtin/packages/gmsh/package.py @@ -80,6 +80,8 @@ class Gmsh(CMakePackage): # https://gmsh.info/doc/texinfo/gmsh.html#Compiling-the-source-code # We make changes to the GMSH default, such as external blas. + depends_on("libpng", when="+fltk") + depends_on("libjpeg", when="+fltk") depends_on("blas", when="~eigen") depends_on("lapack", when="~eigen") depends_on("eigen@3:", when="+eigen+external")