Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-istl
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-istl
Commits
cffd9578
There was a problem fetching the pipeline summary.
Commit
cffd9578
authored
8 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Small improvements and beautifications for FindSuperLU
parent
3bfc31c7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!52
Stop finding old SuperLU versions.
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/FindSuperLU.cmake
+13
-4
13 additions, 4 deletions
cmake/modules/FindSuperLU.cmake
with
13 additions
and
4 deletions
cmake/modules/FindSuperLU.cmake
+
13
−
4
View file @
cffd9578
# .. cmake_module::
#
# Module that checks whether SuperLU is available and usable.
# SuperLU must be
a version released after the year 2005
.
# SuperLU must be
4.0 or newer
.
#
# Variables used by this module which you may want to set:
#
...
...
@@ -13,9 +13,15 @@
# :code:`SUPERLU_FOUND`
# True if SuperLU available and usable.
#
# :code:`SUPERLU_MIN_VERSION_4`
# True if SuperLU version >= 4.0.
#
# :code:`SUPERLU_MIN_VERSION_4_3`
# True if SuperLU version >= 4.3.
#
# :code:`SUPERLU_MIN_VERSION_5`
# True if SuperLU version >= 5.0.
#
# :code:`SUPERLU_WITH_VERSION`
# Human readable string containing version information.
#
...
...
@@ -87,7 +93,7 @@ if(BLAS_LIBRARIES)
set
(
CMAKE_REQUIRED_LIBRARIES
${
CMAKE_REQUIRED_LIBRARIES
}
${
BLAS_LIBRARIES
}
)
endif
(
BLAS_LIBRARIES
)
# check wether version is new enough >= 4.0
CHECK_C_SOURCE_COMPILES
(
"
check_c_source_compiles
(
"
typedef int int_t;
#include <supermatrix.h>
#include <slu_util.h>
...
...
@@ -99,7 +105,7 @@ int main()
}"
SUPERLU_MIN_VERSION_4
)
# check whether version is at least 4.3
CHECK_C_SOURCE_COMPILES
(
"
check_c_source_compiles
(
"
#include <slu_ddefs.h>
int main(void)
{
...
...
@@ -107,7 +113,8 @@ int main(void)
}"
SUPERLU_MIN_VERSION_4_3
)
CHECK_C_SOURCE_COMPILES
(
"
# check whether version is at least 5.0
check_c_source_compiles
(
"
typedef int int_t;
#include <supermatrix.h>
#include <slu_util.h>
...
...
@@ -149,6 +156,8 @@ find_package_handle_standard_args(
mark_as_advanced
(
SUPERLU_INCLUDE_DIR SUPERLU_LIBRARY
)
set_package_info
(
"SuperLU"
"Direct linear solver library"
)
# if both headers and library are found, store results
if
(
SUPERLU_FOUND
)
set
(
SUPERLU_INCLUDE_DIRS
${
SUPERLU_INCLUDE_DIR
}
)
...
...
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