Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
fd030532
Commit
fd030532
authored
7 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Allow usage of dune-perftool form downstream modules
parent
52e76619
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
cmake/modules/DunePerftoolMacros.cmake
+6
-2
6 additions, 2 deletions
cmake/modules/DunePerftoolMacros.cmake
with
6 additions
and
2 deletions
cmake/modules/DunePerftoolMacros.cmake
+
6
−
2
View file @
fd030532
...
...
@@ -65,6 +65,7 @@ if(CMAKE_PROJECT_NAME STREQUAL dune-perftool)
set
(
UFL2PDELAB_GLOB_PATTERN
"
${
CMAKE_SOURCE_DIR
}
/python/*.py"
)
else
()
# TODO: How do we get to the source here???
message
(
WARNING
"You are using dune-perftool from a downstream module. This may cause insufficient retriggers of code generation"
)
endif
()
file
(
GLOB_RECURSE UFL2PDELAB_SOURCES
${
UFL2PDELAB_GLOB_PATTERN
}
)
...
...
@@ -106,7 +107,10 @@ function(add_generated_executable)
endif
()
# Write a standard main function
configure_file
(
${
CMAKE_SOURCE_DIR
}
/cmake/modules/StandardMain.cmake
${
GEN_MAIN
}
)
dune_module_path
(
MODULE dune-perftool
RESULT perftool_path
CMAKE_MODULES
)
configure_file
(
${
perftool_path
}
/StandardMain.cmake
${
GEN_MAIN
}
)
add_custom_command
(
OUTPUT
${
GEN_OPERATOR
}
${
GEN_DRIVER
}
COMMAND
${
CMAKE_BINARY_DIR
}
/run-in-dune-env ufl2pdelab
...
...
@@ -115,7 +119,7 @@ function(add_generated_executable)
--driver-file
${
GEN_DRIVER
}
${
GEN_FORM_COMPILER_ARGS
}
--uflfile
${
GEN_UFLFILE
}
DEPENDS
${
GEN_UFLFILE
}
${
UFL2PDELAB_SOURCES
}
${
GEN_DEPENDS
}
DEPENDS
${
GEN_UFLFILE
}
${
UFL2PDELAB_SOURCES
}
${
GEN_DEPENDS
}
${
DUNE_PERFTOOL_ADDITIONAL_PYTHON_SOURCES
}
COMMENT
"Running ufl2pdelab for the target
${
GEN_TARGET
}
"
)
...
...
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