Skip to content
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

Merged
merged 1 commit into from
Jun 29, 2020

Conversation

wdconinc
Copy link
Contributor

This adds +opengl to the current depends_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:

  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")

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)
@wdconinc
Copy link
Contributor Author

Not sure my change is responsible for the failing unit test, but let me know and I'll fix it.

@adamjstewart
Copy link
Member

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.

Copy link
Member

@adamjstewart adamjstewart left a 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?

@vvolkl
Copy link
Contributor

vvolkl commented Jun 28, 2020

From my side, this looks good - thanks!

@adamjstewart
Copy link
Member

@vvolkl want to be listed as an official maintainer of this package?

@drbenmorgan
Copy link
Member

Fine for me as well, thanks!

@alalazo alalazo merged commit 4ea4c2e into spack:develop Jun 29, 2020
@vvolkl
Copy link
Contributor

vvolkl commented Jun 29, 2020

@vvolkl want to be listed as an official maintainer of this package?

@adamjstewart Fine for me, as long as @drbenmorgan doesn't mind.

@wdconinc wdconinc deleted the bugfix/geant4-qt-opengl branch July 1, 2020 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants