Skip to content
Snippets Groups Projects
Commit 4dc969b4 authored by Steffen Müthing's avatar Steffen Müthing
Browse files

[CMake] Make backported UMFPACK test work seamlessly for DUNE 2.4

- Disable deprecation warning
- Populate SuiteSparse_ROOT from UMFPACK_ROOT if necessary
parent 3824e512
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
# UMFPACK_LIBRARIES Name of the UMFPack libraries # UMFPACK_LIBRARIES Name of the UMFPack libraries
# #
find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK) if((DEFINED UMFPACK_ROOT) AND (NOT DEFINED SuiteSparse_ROOT))
set(SuiteSparse_ROOT "${UMFPACK_ROOT}")
endif()
# use find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK) instead find_package(SuiteSparse OPTIONAL_COMPONENTS UMFPACK)
message(WARNING "find_package(UMFPack) is deprecated, please use FindSuiteSparse instead")
set(UMFPACK_INCLUDE_DIRS ${SuiteSparse_INCLUDE_DIRS}) set(UMFPACK_INCLUDE_DIRS ${SuiteSparse_INCLUDE_DIRS})
set(UMFPACK_LIBRARIES ${SuiteSparse_LIBRARIES}) set(UMFPACK_LIBRARIES ${SuiteSparse_LIBRARIES})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment