From 4ea4c2e63f7417fbcf2596ef69624b1eed1685ca Mon Sep 17 00:00:00 2001 From: Wouter Deconinck Date: Mon, 29 Jun 2020 01:09:29 -0500 Subject: geant4: depends on "qt@5: +opengl" when +qt (#17264) The Geant4 cmake check requires Qt5OpenGL_FOUND, so we must require the Qt5 +opengl variant. If not, the cmake phase fall through to Qt4 and fails due to a missing Qt4::QtGui target. In Geant4InterfaceOptions.cmake: ``` if(Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Widgets_FOUND AND Qt5OpenGL_FOUND AND Qt5PrintSupport_FOUND) ``` Ref: https://github.com/Geant4/geant4/blob/master/cmake/Modules/Geant4InterfaceOptions.cmake#L90 (5baee230e93612916bcea11ebf822756cfa7282c, Import Geant4 10.6.0 source tree) --- var/spack/repos/builtin/packages/geant4/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/geant4/package.py b/var/spack/repos/builtin/packages/geant4/package.py index b559557340..7c12a9f26e 100644 --- a/var/spack/repos/builtin/packages/geant4/package.py +++ b/var/spack/repos/builtin/packages/geant4/package.py @@ -88,7 +88,7 @@ class Geant4(CMakePackage): depends_on("libx11", when='+x11') depends_on("libxmu", when='+x11') depends_on("motif", when='+motif') - depends_on("qt@5:", when="+qt") + depends_on("qt@5: +opengl", when="+qt") # As released, 10.03.03 has issues with respect to using external # CLHEP. -- cgit v1.2.3-70-g09d2