Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
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
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
cbaa3050
Commit
cbaa3050
authored
8 months ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
Fix targets configuration when PETSc or SLEPc are not installed
parent
f5b4286e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+18
-14
18 additions, 14 deletions
CMakeLists.txt
with
18 additions
and
14 deletions
CMakeLists.txt
+
18
−
14
View file @
cbaa3050
...
...
@@ -178,6 +178,7 @@ if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$")
# PETSc support is deactivated if MPI is not found
pkg_check_modules
(
PETSC IMPORTED_TARGET GLOBAL PETSc
)
if
(
${
PETSC_FOUND
}
)
set_property
(
TARGET PkgConfig::PETSC PROPERTY
IMPORTED_LOCATION
"
${
PETSC_LIBRARIES
}
"
)
...
...
@@ -186,6 +187,7 @@ if (PUGS_ENABLE_PETSC MATCHES "^(AUTO|ON)$")
)
set
(
PETSC_TARGET PkgConfig::PETSC
)
endif
()
else
()
message
(
STATUS
"PETSc support is deactivated since pugs will not be build with MPI support"
)
set
(
PETSC_FOUND FALSE
)
...
...
@@ -215,6 +217,7 @@ if (PUGS_ENABLE_SLEPC MATCHES "^(AUTO|ON)$")
# SLEPc support is deactivated if PETSc is not found
pkg_check_modules
(
SLEPC IMPORTED_TARGET GLOBAL SLEPc
)
if
(
${
SLEPC_FOUND
}
)
set_property
(
TARGET PkgConfig::SLEPC PROPERTY
IMPORTED_LOCATION
"
${
SLEPC_LIBRARIES
}
"
)
...
...
@@ -223,6 +226,7 @@ if (PUGS_ENABLE_SLEPC MATCHES "^(AUTO|ON)$")
)
set
(
SLEPC_TARGET PkgConfig::SLEPC
)
endif
()
else
()
message
(
STATUS
"SLEPc support is deactivated since pugs will not be build with PETSc support"
)
set
(
SLEPC_FOUND FALSE
)
...
...
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
sign in
to comment