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
dbf44209
Commit
dbf44209
authored
5 years ago
by
Marko Petric
Committed by
Andre Sailer
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use generic Python find package
parent
bd212097
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/CMakeLists.txt
+4
-4
4 additions, 4 deletions
DDG4/CMakeLists.txt
with
4 additions
and
4 deletions
DDG4/CMakeLists.txt
+
4
−
4
View file @
dbf44209
...
@@ -50,8 +50,8 @@ dd4hep_add_plugin(DDG4Plugins
...
@@ -50,8 +50,8 @@ dd4hep_add_plugin(DDG4Plugins
#--------------------------- Plugin library for the simulation framework ---------
#--------------------------- Plugin library for the simulation framework ---------
find_package
(
Python
2
COMPONENTS Development
)
find_package
(
Python COMPONENTS Development
)
if
(
TARGET Python
2
::Python
)
if
(
TARGET Python::Python
)
dd4hep_print
(
"|++> Python found, creating DDG4Python Dictionary"
)
dd4hep_print
(
"|++> Python found, creating DDG4Python Dictionary"
)
dd4hep_add_dictionary
(
G__DDG4Python
dd4hep_add_dictionary
(
G__DDG4Python
SOURCES src/python/DDG4Python.C
SOURCES src/python/DDG4Python.C
...
@@ -59,14 +59,14 @@ if(TARGET Python2::Python)
...
@@ -59,14 +59,14 @@ if(TARGET Python2::Python)
)
)
dd4hep_add_dictionary
(
G__DDPython
dd4hep_add_dictionary
(
G__DDPython
SOURCES tpython/DDPython.C
SOURCES tpython/DDPython.C
USES Python
2
::Python
USES Python::Python
)
)
if
(
TARGET ROOT::PyROOT
)
if
(
TARGET ROOT::PyROOT
)
#--------------------------- Specialized python plugins --------------------------
#--------------------------- Specialized python plugins --------------------------
dd4hep_print
(
"|++> ROOT Has Python, creating DDPython library and plugins"
)
dd4hep_print
(
"|++> ROOT Has Python, creating DDPython library and plugins"
)
add_library
(
DDPython SHARED G__DDPython.cxx tpython/DDPython.cpp
)
add_library
(
DDPython SHARED G__DDPython.cxx tpython/DDPython.cpp
)
add_library
(
DD4hep::DDPython ALIAS DDPython
)
add_library
(
DD4hep::DDPython ALIAS DDPython
)
target_link_libraries
(
DDPython DD4hep::DDG4 ROOT::Core Python
2
::Python ROOT::PyROOT
)
target_link_libraries
(
DDPython DD4hep::DDG4 ROOT::Core Python::Python ROOT::PyROOT
)
IF
(
${
CMAKE_CXX_STANDARD
}
GREATER 16
)
IF
(
${
CMAKE_CXX_STANDARD
}
GREATER 16
)
# python header not cxx17 compatible, gives error in clang
# python header not cxx17 compatible, gives error in clang
target_compile_options
(
DDPython PUBLIC -Wno-register
)
target_compile_options
(
DDPython PUBLIC -Wno-register
)
...
...
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