geant4: add matinainer, clean args (#43218)
This commit is contained in:
parent
96061d2c00
commit
5ab10d57be
@ -20,7 +20,7 @@ class Geant4(CMakePackage):
|
|||||||
|
|
||||||
executables = ["^geant4-config$"]
|
executables = ["^geant4-config$"]
|
||||||
|
|
||||||
maintainers("drbenmorgan")
|
maintainers("drbenmorgan", "sethrj")
|
||||||
|
|
||||||
version("11.2.1", sha256="76c9093b01128ee2b45a6f4020a1bcb64d2a8141386dea4674b5ae28bcd23293")
|
version("11.2.1", sha256="76c9093b01128ee2b45a6f4020a1bcb64d2a8141386dea4674b5ae28bcd23293")
|
||||||
version("11.2.0", sha256="9ff544739b243a24dac8f29a4e7aab4274fc0124fd4e1c4972018213dc6991ee")
|
version("11.2.0", sha256="9ff544739b243a24dac8f29a4e7aab4274fc0124fd4e1c4972018213dc6991ee")
|
||||||
@ -265,7 +265,7 @@ def cmake_args(self):
|
|||||||
if "+threads" in spec:
|
if "+threads" in spec:
|
||||||
# Locked at global-dynamic to allow use cases that load the
|
# Locked at global-dynamic to allow use cases that load the
|
||||||
# geant4 libs at application runtime
|
# geant4 libs at application runtime
|
||||||
options.append("-DGEANT4_BUILD_TLS_MODEL=global-dynamic")
|
options.append(self.define("GEANT4_BUILD_TLS_MODEL", "global-dynamic"))
|
||||||
|
|
||||||
# Profiling
|
# Profiling
|
||||||
options.append(self.define_from_variant("GEANT4_USE_TIMEMORY", "timemory"))
|
options.append(self.define_from_variant("GEANT4_USE_TIMEMORY", "timemory"))
|
||||||
@ -283,9 +283,9 @@ def cmake_args(self):
|
|||||||
|
|
||||||
# Visualization options
|
# Visualization options
|
||||||
if "platform=darwin" not in spec:
|
if "platform=darwin" not in spec:
|
||||||
if "+x11" in spec and "+opengl" in spec:
|
if "+x11 +opengl" in spec:
|
||||||
options.append(self.define("GEANT4_USE_OPENGL_X11", True))
|
options.append(self.define("GEANT4_USE_OPENGL_X11", True))
|
||||||
if "+motif" in spec and "+opengl" in spec:
|
if "+motif +opengl" in spec:
|
||||||
options.append(self.define("GEANT4_USE_XM", True))
|
options.append(self.define("GEANT4_USE_XM", True))
|
||||||
if "+x11" in spec:
|
if "+x11" in spec:
|
||||||
options.append(self.define("GEANT4_USE_RAYTRACER_X11", True))
|
options.append(self.define("GEANT4_USE_RAYTRACER_X11", True))
|
||||||
|
Loading…
Reference in New Issue
Block a user