Skip to content

Commit

Permalink
Fix a few requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Mar 10, 2024
1 parent 883a729 commit 8dae994
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
22 changes: 11 additions & 11 deletions environments/key4hep-common/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ packages:
require: +cxx+hl
# https://github.com/key4hep/key4hep-spack/issues/517
lccd:
require: +conddbmysql cxxstd=20
require: +conddbmysql
llvm:
variants: ~flang~lldb~lld~mlir~internal_unwind~polly~limomptarget~omp_debug~gold~split_dwarf~llvm_dylib~link_llvm_dylib~omp_tsan~omp_as_runtime~code_signing~python~version_suffix~shlib_symbol_version~z3~zstd compiler-rt="none" libcxx="none" targets="x86"
marlin:
require: +lccd cxxstd=20
require: +lccd
podio:
require: +rntuple+rpath+sio
py-numpy:
Expand Down Expand Up @@ -82,9 +82,9 @@ packages:
py-tensorflow:
require: ~cuda~nccl
whizard:
require: ~fastjet~latex+lcio~lhapdf+openloops~openmp+pythia8 hepmc=3 cxxstd=20
require: ~fastjet~latex+lcio~lhapdf+openloops~openmp+pythia8 hepmc=3
k4simdelphes:
require: ~delphes_hepmc cxxstd=20
require: ~delphes_hepmc
evtgen:
require: +photos
photos:
Expand All @@ -95,7 +95,7 @@ packages:
require: ~libunwind
all:
target: [x86_64]
variants: cxxstd=20
variants: build_type=Release cxxstd=20
buildable: true
compiler: []

Expand All @@ -110,11 +110,11 @@ packages:
cepcsw:
variants: build_type=Release cxxstd=20
clicperformance:
variants: build_type=Release cxxstd=20
variants: build_type=Release
conformaltracking:
variants: build_type=Release cxxstd=20
variants: build_type=Release
ddkaltest:
variants: build_type=Release cxxstd=20
variants: build_type=Release
ddmarlinpandora:
variants: build_type=Release cxxstd=20
delphes:
Expand Down Expand Up @@ -182,7 +182,7 @@ packages:
marlinreco:
variants: build_type=Release cxxstd=20
marlintrk:
variants: build_type=Release cxxstd=20
variants: build_type=Release
marlintrkprocessors:
variants: build_type=Release cxxstd=20
marlinutil:
Expand All @@ -194,8 +194,8 @@ packages:
pandoraanalysis:
variants: build_type=Release cxxstd=20
physsim:
variants: build_type=Release cxxstd=20
variants: build_type=Release
raida:
variants: build_type=Release cxxstd=20
variants: build_type=Release
sio:
variants: build_type=Release cxxstd=20
1 change: 0 additions & 1 deletion packages/aidatt/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class Aidatt(CMakePackage, Ilcsoftpackage):
depends_on("lcio")

def cmake_args(self):
# C++ Standard
return [
f"-DCMAKE_CXX_STANDARD={self.spec['root'].variants['cxxstd'].value}",
"-DUSE_CXX11=FALSE", # avoid overriding the root standard
Expand Down
2 changes: 1 addition & 1 deletion packages/lccd/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ class Lccd(CMakePackage, Ilcsoftpackage):

def cmake_args(self):
args = []
# todo: add variant
args.append(self.define_from_variant("LCCD_CONDDBMYSQL", "conddbmysql"))
args.append(self.define("CMAKE_CXX_STANDARD", self.spec["lcio"].variants["cxxstd"].value))
return args
3 changes: 1 addition & 2 deletions packages/marlin/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ class Marlin(CMakePackage, Ilcsoftpackage):

def cmake_args(self):
args = []
# todo: add variant
args.append(self.define_from_variant("INSTALL_DOC", "doc"))
args.append(self.define_from_variant("MARLIN_GUI", "gui"))
args.append(self.define_from_variant("MARLIN_LCCD", "lccd"))
args.append(self.define_from_variant("MARLIN_CLHEP", "clhep"))
args.append(self.define_from_variant("MARLIN_AIDA", "aida"))
args.append("-DCMAKE_CXX_STANDARD=17")
args.append(f"-DCMAKE_CXX_STANDARD={self.spec['lcio'].variants['cxxstd'].value}")
if "aida" in self.spec:
args.append("-DAIDA_DIR=%s" % self.spec["aida"].prefix)
return args

0 comments on commit 8dae994

Please sign in to comment.