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
efa05177
Commit
efa05177
authored
5 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix cmake bugs introduced to build examples with Geant4 builtin CLHEP
parent
862adb22
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/CMakeLists.txt
+1
-1
1 addition, 1 deletion
examples/CMakeLists.txt
examples/DDCMS/CMakeLists.txt
+5
-8
5 additions, 8 deletions
examples/DDCMS/CMakeLists.txt
with
6 additions
and
9 deletions
examples/CMakeLists.txt
+
1
−
1
View file @
efa05177
...
@@ -41,7 +41,7 @@ dd4hep_configure_output()
...
@@ -41,7 +41,7 @@ dd4hep_configure_output()
SET
(
DD4HEP_EXAMPLES
"AlignDet CLICSiD ClientTests Conditions DDCMS DDCodex DDDB DDDigi DDG4 DDG4_MySensDet LHeD OpticalSurfaces Persistency SimpleDetector"
SET
(
DD4HEP_EXAMPLES
"AlignDet CLICSiD ClientTests Conditions DDCMS DDCodex DDDB DDDigi DDG4 DDG4_MySensDet LHeD OpticalSurfaces Persistency SimpleDetector"
CACHE STRING
"List of DD4hep Examples to build"
)
CACHE STRING
"List of DD4hep Examples to build"
)
SEPARATE_ARGUMENTS
(
DD4HEP_EXAMPLES
)
SEPARATE_ARGUMENTS
(
DD4HEP_EXAMPLES
)
MESSAGE
(
STATUS
"Will be building these examples:
${
DD4HEP_
BUILD_
EXAMPLES
}
"
)
MESSAGE
(
STATUS
"Will be building these examples:
${
DD4HEP_EXAMPLES
}
"
)
FOREACH
(
DDExample IN LISTS DD4HEP_EXAMPLES
)
FOREACH
(
DDExample IN LISTS DD4HEP_EXAMPLES
)
dd4hep_print
(
"|> Building
${
DDExample
}
"
)
dd4hep_print
(
"|> Building
${
DDExample
}
"
)
...
...
This diff is collapsed.
Click to expand it.
examples/DDCMS/CMakeLists.txt
+
5
−
8
View file @
efa05177
...
@@ -22,20 +22,17 @@ IF(NOT TARGET DD4hep::DDCore)
...
@@ -22,20 +22,17 @@ IF(NOT TARGET DD4hep::DDCore)
ENDIF
()
ENDIF
()
dd4hep_set_compiler_flags
()
dd4hep_set_compiler_flags
()
#
#==========================================================================
#==========================================================================
set
(
Geant4_builtin_clhep_FOUND ON
)
# Configure Geant4 to if we have a builtin CLHEP
# Configure Geant4
if
(
DD4HEP_USE_GEANT4
)
if
(
DD4HEP_USE_GEANT4
)
find_package
(
Geant4 REQUIRED
)
find_package
(
Geant4 REQUIRED
)
if
(
NOT Geant4_builtin_clhep_FOUND
)
if
(
Geant4_builtin_clhep_FOUND
)
SET
(
DD4HEP_USE_CLHEP TRUE
)
else
()
include_directories
(
${
Geant4_INCLUDE_DIRS
}
)
include_directories
(
${
Geant4_INCLUDE_DIRS
}
)
DD4HEP_SETUP_GEANT4_TARGETS
()
endif
()
endif
()
dd4hep_print
(
"|++> Setup Geant4 targets."
)
DD4HEP_SETUP_GEANT4_TARGETS
()
endif
()
endif
()
#
# CLHEP dependent stuff
# CLHEP dependent stuff
if
(
NOT TARGET CLHEP::CLHEP
)
if
(
NOT TARGET CLHEP::CLHEP
)
# ensure we only look for CLHEP once
# ensure we only look for CLHEP once
...
...
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