Skip to content

Commit

Permalink
Fix setting the PANDORA_MONITORING cmake variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Dec 6, 2024
1 parent f670606 commit 4d67a47
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
10 changes: 4 additions & 6 deletions packages/ddmarlinpandora/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ class Ddmarlinpandora(CMakePackage, Ilcsoftpackage):

variant("monitoring", default=False, description="Enable Pandora Monitoring")

def setup_build_environment(self, env):
if "+monitoring" in self.spec:
env.set("PANDORA_MONITORING", "ON")

def setup_run_environment(self, env):
env.prepend_path("MARLIN_DLL", self.prefix.lib + "/libDDMarlinPandora.so")

def cmake_args(self):
# C++ Standard
return [f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}"]
return [
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}",
self.define_from_variant("PANDORA_MONITORING", "monitoring"),
]
7 changes: 2 additions & 5 deletions packages/larcontent/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,11 @@ class Larcontent(CMakePackage):

variant("monitoring", default=False, description="Enable Pandora Monitoring")

def setup_build_environment(self, env):
if "+monitoring" in self.spec:
env.set("PANDORA_MONITORING", "ON")

def cmake_args(self):
args = [
"-DCMAKE_MODULE_PATH=%s" % self.spec["pandorapfa"].prefix.cmakemodules,
"-DCMAKE_CXX_FLAGS=-std=c++20 -Wno-error",
"-DCMAKE_CXX_FLAGS=-std=c++17 -Wno-error",
self.define_from_variant("PANDORA_MONITORING", "monitoring"),
]
return args

Expand Down
5 changes: 1 addition & 4 deletions packages/lccontent/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,12 @@ class Lccontent(CMakePackage):

variant("monitoring", default=False, description="Enable Pandora Monitoring")

def setup_build_environment(self, env):
if "+monitoring" in self.spec:
env.set("PANDORA_MONITORING", "ON")

def cmake_args(self):
args = [
"-DCMAKE_CXX_STANDARD=20",
"-DCMAKE_MODULE_PATH=%s" % self.spec["pandorapfa"].prefix.cmakemodules,
"-DCMAKE_CXX_FLAGS=-Wno-error",
self.define_from_variant("PANDORA_MONITORING", "monitoring"),
]
return args

Expand Down

0 comments on commit 4d67a47

Please sign in to comment.