Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
5d93a281
Commit
5d93a281
authored
6 years ago
by
Andre Sailer
Committed by
Marko Petric
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
CMake: Ensure proper tls flag for Geant4 build, added option to override
parent
dff30181
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
CMakeLists.txt
+6
-0
6 additions, 0 deletions
CMakeLists.txt
with
6 additions
and
0 deletions
CMakeLists.txt
+
6
−
0
View file @
5d93a281
...
...
@@ -58,6 +58,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
option
(
DD4HEP_USE_XERCESC
"Enable 'Detector Builders' based on XercesC"
OFF
)
option
(
DD4HEP_USE_GEANT4
"Enable the simulation part based on Geant4"
OFF
)
option
(
DD4HEP_IGNORE_GEANT4_TLS
"Ignore the tls flag Geant4 was compiled with"
OFF
)
option
(
DD4HEP_USE_GEAR
"Build gear wrapper for backward compatibility"
OFF
)
option
(
DD4HEP_USE_LCIO
"Build lcio extensions"
OFF
)
option
(
BUILD_TESTING
"Enable and build tests"
ON
)
...
...
@@ -97,6 +98,11 @@ add_definitions( -DBOOST_SPIRIT_USE_PHOENIX_V3 )
if
(
DD4HEP_USE_GEANT4
)
find_package
(
Geant4 10.2.2 REQUIRED gdml ui_all vis_all
)
include
(
${
Geant4_USE_FILE
}
)
IF
((
NOT
${
Geant4_TLS_MODEL
}
STREQUAL
"global-dynamic"
)
AND NOT
${
DD4HEP_IGNORE_GEANT4_TLS
}
)
MESSAGE
(
FATAL_ERROR
"Geant4 was built with
${
Geant4_TLS_MODEL
}
, DD4hep requires 'global-dynamic'! Ignore this ERROR with DD4HEP_IGNORE_GEANT4_TLS=True "
)
ENDIF
()
endif
()
######################
...
...
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