Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-elasticity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
agnumpde
dune-elasticity
Commits
d031c3d8
Commit
d031c3d8
authored
4 years ago
by
Patrick Jaap
Browse files
Options
Downloads
Patches
Plain Diff
Cmake: Look for PYTHONLIBS and for Python3
This basically reverts
f10d311d
parent
f27b3421
No related branches found
No related tags found
1 merge request
!62
Cmake: Look for PYTHONLIBS and for Python3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CMakeLists.txt
+5
-9
5 additions, 9 deletions
src/CMakeLists.txt
with
5 additions
and
9 deletions
src/CMakeLists.txt
+
5
−
9
View file @
d031c3d8
if
(
ADOLC_FOUND AND IPOPT_FOUND AND Python3_FOUND AND dune-uggrid_FOUND
)
# Note: PYTHONLIBS_FOUND is only for backwards compatibility with dune-fufem 2.7 and can be removed
set
(
programs linear-elasticity
)
# in the next release
if
(
ADOLC_FOUND AND IPOPT_FOUND
AND
(
Python3_FOUND OR PYTHONLIBS_FOUND
)
AND dune-uggrid_FOUND
)
# When combining dune-common 2.7 and dune-fufem 2.8, no cmake test for the
set
(
programs linear-elasticity
# Python bindings is ever called (that's not a bug). In that case
finite-strain-elasticity
)
# we simply skip building the one executable that needs Python.
if
(
NOT
(
${
dune-common_VERSION
}
VERSION_LESS_EQUAL
"2.7.9"
AND
${
dune-fufem_VERSION
}
VERSION_GREATER_EQUAL
"2.8.0"
))
set
(
programs
${
programs
}
finite-strain-elasticity
)
endif
()
foreach
(
_program
${
programs
}
)
foreach
(
_program
${
programs
}
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
add_executable
(
${
_program
}
${
_program
}
.cc
)
...
...
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