-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[geant4] depends_on qt@5: +opengl when +qt #17264
Conversation
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)
Not sure my change is responsible for the failing unit test, but let me know and I'll fix it. |
Looks like a transient test failure. I restarted the unit tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@drbenmorgan can you review this?
From my side, this looks good - thanks! |
@vvolkl want to be listed as an official maintainer of this package? |
Fine for me as well, thanks! |
@adamjstewart Fine for me, as long as @drbenmorgan doesn't mind. |
This adds
+opengl
to the currentdepends_on qt@5:
.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:
Ref: https://github.com/Geant4/geant4/blob/master/cmake/Modules/Geant4InterfaceOptions.cmake#L90
(5baee230e93612916bcea11ebf822756cfa7282c, "Import Geant4 10.6.0 source tree")