Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-geometry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Core Modules
dune-geometry
Commits
ef19a5b3
Commit
ef19a5b3
authored
4 months ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Remove dune_add_pybind11_submodule
parent
638c3b3e
No related branches found
Branches containing commit
No related tags found
1 merge request
!256
Remove dune_add_pybind11_submodule
Pipeline
#74777
passed
4 months ago
Stage: .pre
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/geometry/CMakeLists.txt
+7
-6
7 additions, 6 deletions
python/dune/geometry/CMakeLists.txt
with
7 additions
and
6 deletions
python/dune/geometry/CMakeLists.txt
+
7
−
6
View file @
ef19a5b3
...
...
@@ -11,14 +11,15 @@ add_python_targets(geometry
dune_add_pybind11_module
(
NAME _geometry SOURCES _geometry.cc
)
target_link_libraries
(
_geometry PUBLIC Dune::Geometry
)
if
(
DUNE_ENABLE_PYTHONMODULE_PRECOMPILE
)
set
(
DIMS 0 1 2 3 4
)
foreach
(
DIM
${
DIMS
}
)
dune_add_pybind11_submodule
(
NAME registerrefelem_
${
DIM
}
MODULE _geometry SOURCES registerrefelem.cc
COMPILE_DEFINITIONS DIM=
${
DIM
}
)
foreach
(
DIM RANGE 0 4
)
add_library
(
registerrefelem_
${
DIM
}
OBJECT registerrefelem.cc
)
target_compile_definitions
(
registerrefelem_
${
DIM
}
PRIVATE DIM=
${
DIM
}
)
target_link_libraries
(
registerrefelem_
${
DIM
}
PRIVATE Dune::Geometry
)
# Register the object in the pybind11 module _geometry
target_link_libraries
(
_geometry PRIVATE registerrefelem_
${
DIM
}
)
endforeach
()
endif
()
set_property
(
TARGET _geometry PROPERTY LINK_LIBRARIES Dune::Geometry APPEND
)
if
(
SKBUILD
)
install
(
TARGETS _geometry LIBRARY DESTINATION python/dune/geometry
)
...
...
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