root: require +opengl when +aqua is on (#47349)

According to https://github.com/root-project/root/issues/7160, if
`-Dcocoa=ON` build must also be configured with `-Dopengl=ON`, since
otherwise the build encounters missing includes. This is/was a silent
failure in ROOT CMake, but I believe has been made an explicit failure
some time this year.
This commit is contained in:
Paul Gessinger 2024-11-02 11:13:37 +01:00 committed by GitHub
parent b8461f3d2d
commit 55918c31d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -429,6 +429,8 @@ class Root(CMakePackage):
# Incompatible variants
if sys.platform == "darwin":
conflicts("+opengl", when="~x ~aqua", msg="root+opengl requires X or Aqua")
# https://github.com/root-project/root/issues/7160
conflicts("+aqua", when="~opengl", msg="+aqua requires OpenGL to be enabled")
else:
conflicts("+opengl", when="~x", msg="root+opengl requires X")
conflicts("+math", when="~gsl", msg="root+math requires GSL")