From c82acc7f3f475662daa7e92e28018e9ca4395b0f Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wouter.deconinck@umanitoba.ca>
Date: Tue, 26 Oct 2021 19:42:42 +0000
Subject: [PATCH] Apply single particle momentum patch to 1.18 as well

---
 spack/packages/dd4hep/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spack/packages/dd4hep/package.py b/spack/packages/dd4hep/package.py
index 063314d58..6e322c928 100644
--- a/spack/packages/dd4hep/package.py
+++ b/spack/packages/dd4hep/package.py
@@ -56,7 +56,7 @@ class Dd4hep(CMakePackage):
     # https://github.com/AIDASoft/DD4hep/pull/851
     patch('2021-07-27.patch', when='@1.17p1')
     # patch for https://github.com/AIDASoft/DD4hep/issues/862
-    patch('0001-do-not-change-momentum-in-getParticleDirection.patch', when='@1.17p1')
+    patch('0001-do-not-change-momentum-in-getParticleDirection.patch', when='@1.17p1:1.18')
 
     variant('xercesc', default=False, description="Enable 'Detector Builders' based on XercesC")
     variant('geant4', default=False, description="Enable the simulation part based on Geant4")
-- 
GitLab