Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
69ea6de0
Unverified
Commit
69ea6de0
authored
4 years ago
by
Valentin V
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[dd4hep] variant and run env updates (#16524)
* [dd4hep] variant and run env updates * address comments from #16524
parent
6e466034
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/dd4hep/package.py
+8
-2
8 additions, 2 deletions
var/spack/repos/builtin/packages/dd4hep/package.py
with
8 additions
and
2 deletions
var/spack/repos/builtin/packages/dd4hep/package.py
+
8
−
2
View file @
69ea6de0
...
...
@@ -36,7 +36,7 @@ class Dd4hep(CMakePackage):
variant
(
'
xercesc
'
,
default
=
False
,
description
=
"
Enable
'
Detector Builders
'
based on XercesC
"
)
variant
(
'
geant4
'
,
default
=
False
,
description
=
"
Enable the simulation part based on Geant4
"
)
variant
(
'
testing
'
,
default
=
False
,
description
=
"
Enable
and build tests
"
)
variant
(
'
assimp
'
,
default
=
False
,
description
=
"
Enable
CAD interface based on Assimp
"
)
depends_on
(
'
cmake @3.12:
'
,
type
=
'
build
'
)
depends_on
(
'
boost @1.49:
'
)
...
...
@@ -44,6 +44,7 @@ class Dd4hep(CMakePackage):
extends
(
'
python
'
)
depends_on
(
'
xerces-c
'
,
when
=
'
+xercesc
'
)
depends_on
(
'
geant4@10.2.2:
'
,
when
=
'
+geant4
'
)
depends_on
(
'
assimp
'
,
when
=
'
+assimp
'
)
def
cmake_args
(
self
):
spec
=
self
.
spec
...
...
@@ -55,13 +56,18 @@ def cmake_args(self):
"
-DCMAKE_CXX_STANDARD={0}
"
.
format
(
cxxstd
),
"
-DDD4HEP_USE_XERCESC={0}
"
.
format
(
spec
.
satisfies
(
'
+xercesc
'
)),
"
-DDD4HEP_USE_GEANT4={0}
"
.
format
(
spec
.
satisfies
(
'
+geant4
'
)),
"
-DBUILD_TESTING={0}
"
.
format
(
spec
.
satisfies
(
'
+testing
'
)),
"
-DDD4HEP_LOAD_ASSIMP={0}
"
.
format
(
spec
.
satisfies
(
'
+assimp
'
)),
"
-DBUILD_TESTING={0}
"
.
format
(
self
.
run_tests
),
"
-DBOOST_ROOT={0}
"
.
format
(
spec
[
'
boost
'
].
prefix
),
"
-DBoost_NO_BOOST_CMAKE=ON
"
,
"
-DPYTHON_EXECUTABLE={0}
"
.
format
(
spec
[
'
python
'
].
command
.
path
),
]
return
args
def
setup_run_environment
(
self
,
env
):
# used p.ex. in ddsim to find DDDetectors dir
env
.
set
(
"
DD4hepINSTALL
"
,
self
.
prefix
)
def
url_for_version
(
self
,
version
):
# dd4hep releases are dashes and padded with a leading zero
# the patch version is omitted when 0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment