pandoramonitoring: add patch for compiling with C++20 (#48659)

* pandoramonitoring: add patch for compiling with C++20

* Fix patch for PandoraMonitoring

---------

Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
This commit is contained in:
Juan Miguel Carceller 2025-01-23 13:25:26 +01:00 committed by GitHub
parent 2db654bf5a
commit 21988fbb18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,6 +26,15 @@ class Pandoramonitoring(CMakePackage):
depends_on("root@6.18.04: +x +opengl")
depends_on("pandorasdk")
# https://github.com/PandoraPFA/PandoraMonitoring/pull/13
@when("@:3.6.0")
def patch(self):
filter_file(
"TTreeWrapper::Branch<T>::~Branch<T>",
"TTreeWrapper::Branch<T>::~Branch",
"src/TTreeWrapper.cc",
)
def cmake_args(self):
args = [
self.define("CMAKE_MODULE_PATH", self.spec["pandorapfa"].prefix.cmakemodules),