Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Timo Koch
dune-common
Commits
a81b4274
Commit
a81b4274
authored
11 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[CMake][doc] Improve documentation of FindUMFPack.cmake.
parent
26cbfc29
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/FindUMFPack.cmake
+7
-3
7 additions, 3 deletions
cmake/modules/FindUMFPack.cmake
with
7 additions
and
3 deletions
cmake/modules/FindUMFPack.cmake
+
7
−
3
View file @
a81b4274
...
...
@@ -29,7 +29,7 @@ find_library(AMD_LIBRARY
)
if
(
NOT AMD_LIBRARY
)
message
(
WARNING
"UMFPack requires AMD which was not found, skipping the test."
)
message
(
WARNING
"UMFPack requires AMD
(approximate minimum degree ordering)
which was not found, skipping the test."
)
return
()
endif
()
...
...
@@ -59,6 +59,7 @@ find_library(UMFPACK_LIBRARY
PATH_SUFFIXES
"lib"
"lib32"
"lib64"
"UMFPACK"
"UMFPACK/Lib"
)
# behave like a CMake module is supposed to behave
if
(
UMFPACK_INCLUDE_DIR
)
set
(
CMAKE_REQUIRED_INCLUDES
${
CMAKE_REQUIRED_INCLUDES
}
${
UMFPACK_INCLUDE_DIR
}
${
AMD_INCLUDE_DIR
}
)
endif
()
...
...
@@ -82,9 +83,11 @@ find_package_handle_standard_args(
mark_as_advanced
(
UMFPACK_INCLUDE_DIR UMFPACK_LIBRARY
)
# if both headers and library are found, store results
if
(
UMFPACK_FOUND
)
set
(
UMFPACK_INCLUDE_DIRS
${
UMFPACK_INCLUDE_DIR
}
)
set
(
UMFPACK_LIBRARIES
${
UMFPACK_LIBRARY
}
)
# log result
file
(
APPEND
${
CMAKE_BINARY_DIR
}${
CMAKE_FILES_DIRECTORY
}
/CMakeOutput.log
"Determining location of UMFPack succeded:
\n
"
"Include directory:
${
UMFPACK_INCLUDE_DIRS
}
\n
"
...
...
@@ -92,8 +95,9 @@ if(UMFPACK_FOUND)
set
(
UMFPACK_DUNE_COMPILE_FLAGS
"-I
${
UMFPACK_INCLUDE_DIRS
}
"
CACHE STRING
"Compile Flags used by DUNE when compiling with UMFPack programs"
)
set
(
UMFPACK_DUNE_LIBRARIES
${
UMFPACK_LIBRARIES
}
${
BLAS_LIBRARIES
}
${
AMD_LIBRARY
}
CACHE STRING
"L
I
braries used by DUNE when linking UMFPack programs"
)
CACHE STRING
"L
i
braries used by DUNE when linking UMFPack programs"
)
else
(
UMFPACK_FOUND
)
# log errornous result
file
(
APPEND
${
CMAKE_BINARY_DIR
}${
CMAKES_FILES_DIRECTORY
}
/CMakeError.log
"Determing location of UMFPack failed:
\n
"
"Include directory:
${
UMFPACK_INCLUDE_DIRS
}
\n
"
...
...
@@ -109,4 +113,4 @@ if(UMFPACK_FOUND)
foreach
(
dir
"
${
UMFPACK_INCLUDE_DIRS
}
"
)
set_property
(
GLOBAL APPEND PROPERTY ALL_PKG_FLAGS
"-I
${
dir
}
"
)
endforeach
()
endif
()
\ No newline at end of file
endif
()
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