Skip to content

Commit

Permalink
old workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Jan 12, 2023
1 parent 13ac70a commit eae9388
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,16 @@ src_hepmc3 = files([
'extern/HepMC3/src/WriterPlugin.cc',
])

hepmc3 = static_library('hepmc3', src_hepmc3,
include_directories: inc_hepmc3,
cpp_args: ['-DHepMC3_EXPORTS=1'] + cpp.get_supported_arguments(
'-Wno-deprecated-declarations',
'-Wno-strict-aliasing',
),
)
# Installing shared library along with Python extension is currently not
# supported by meson-python for all platforms (currently only Linux)
# hepmc3 = library('hepmc3', src_hepmc3,
# include_directories: inc_hepmc3,
# cpp_args: ['-DHepMC3_EXPORTS=1'] + cpp.get_supported_arguments(
# '-Wno-deprecated-declarations',
# '-Wno-strict-aliasing',
# ),
# install=true
# )

src_core = files([
'src/attribute_conversion.cpp',
Expand All @@ -75,14 +78,16 @@ src_core = files([
])

py.extension_module(
'_core', src_core,
'_core', src_core + src_hepmc3,
include_directories: [inc_pybind11, inc_hepmc3],
dependencies: [
mp11,
accessor,
],
link_whole: hepmc3,
cpp_args: cpp.get_supported_arguments('-Wno-self-assign-overloaded'),
cpp_args: ['-DHepMC3_EXPORTS=1'] + cpp.get_supported_arguments(
'-Wno-self-assign-overloaded',
'-Wno-deprecated-declarations',
'-Wno-strict-aliasing'),
subdir: 'pyhepmc',
install: true
)
Expand Down

0 comments on commit eae9388

Please sign in to comment.