From ca0e023c436640e5b15c9a0b452e57686eb0d77a Mon Sep 17 00:00:00 2001 From: Laurent Aphecetche Date: Thu, 6 Oct 2022 16:41:08 +0200 Subject: [PATCH] geant4-vmc: unset MACOSX_DEPLOYMENT_TARGET (#32828) --- var/spack/repos/builtin/packages/geant4-vmc/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/geant4-vmc/package.py b/var/spack/repos/builtin/packages/geant4-vmc/package.py index 941e87570d..4b75b17f7b 100644 --- a/var/spack/repos/builtin/packages/geant4-vmc/package.py +++ b/var/spack/repos/builtin/packages/geant4-vmc/package.py @@ -36,3 +36,7 @@ class Geant4Vmc(CMakePackage): depends_on("cmake@3.3:", type="build") depends_on("geant4") depends_on("vmc") + + def setup_build_environment(self, env): + if self.spec.satisfies("platform=darwin"): + env.unset("MACOSX_DEPLOYMENT_TARGET")