Skip to content

Commit

Permalink
Update set_package_properties for ARPack and SuperLU
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Praetorius committed Sep 20, 2024
1 parent 43a98e6 commit 1de8ca9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
7 changes: 7 additions & 0 deletions cmake/modules/AddARPACKPPFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
#
# A list of targets to use ARPACKPP with.
#
include_guard(GLOBAL)

set_package_properties("ARPACK" PROPERTIES
PURPOSE "Solve large scale eigenvalue problems")

set_package_properties("ARPACKPP" PROPERTIES
PURPOSE "C++ interface for ARPACK")

function(add_dune_arpackpp_flags _targets)
if(ARPACKPP_FOUND)
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/AddSuperLUFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
#
# A list of targets to use SuperLU with.
#
include_guard(GLOBAL)

set_package_properties("SuperLU" PROPERTIES
PURPOSE "Direct solver for linear system, based on LU decomposition")

# set HAVE_SUPERLU for config.h
set(HAVE_SUPERLU ${SuperLU_FOUND})
Expand Down
10 changes: 5 additions & 5 deletions cmake/modules/FindARPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
# system paths.
#

# text for feature summary
set_package_properties("ARPACK" PROPERTIES
URL "https://www.arpack.org"
DESCRIPTION "ARnoldi PACKage")

# look for library, only at positions given by the user
find_library(ARPACK_LIBRARY
NAMES "arpack"
Expand Down Expand Up @@ -81,8 +86,3 @@ else()
"Determining location of ARPACK failed:\n"
"Libraries to link against: ${ARPACK_LIBRARIES}\n\n")
endif()

# text for feature summary
set_package_properties("ARPACK" PROPERTIES
DESCRIPTION "ARnoldi PACKage"
PURPOSE "Solve large scale eigenvalue problems")
10 changes: 5 additions & 5 deletions cmake/modules/FindARPACKPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
# system paths.
#

# text for feature summary
set_package_properties("ARPACKPP" PROPERTIES
URL "https://github.com/m-reuter/arpackpp"
DESCRIPTION "ARPACK++")

# find ARPACK which is required by ARPACK++
find_package(ARPACK)

Expand Down Expand Up @@ -132,8 +137,3 @@ if(ARPACKPP_FOUND)
LIBRARIES "${ARPACKPP_LIBRARIES}"
COMPILE_OPTIONS "${ARPACKPP_DUNE_COMPILE_FLAGS}")
endif()

# text for feature summary
set_package_properties("ARPACKPP" PROPERTIES
DESCRIPTION "ARPACK++"
PURPOSE "C++ interface for ARPACK")
4 changes: 2 additions & 2 deletions cmake/modules/FindSuperLU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# text for feature summary
include(FeatureSummary)
set_package_properties("SuperLU" PROPERTIES
DESCRIPTION "Supernodal LU"
PURPOSE "Direct solver for linear system, based on LU decomposition")
URL "https://portal.nersc.gov/project/sparse/superlu/"
DESCRIPTION "Supernodal LU")

set(SUPERLU_INT_TYPE "int" CACHE STRING
"The integer version that SuperLU was compiled for (Default is int.
Expand Down

0 comments on commit 1de8ca9

Please sign in to comment.