Skip to content

Commit

Permalink
Merge pull request #95 from n-claes/hotfix/94
Browse files Browse the repository at this point in the history
hotfix: proper linking of arpack after upstream changes
  • Loading branch information
n-claes authored Jun 20, 2022
2 parents 41522f4 + 3a6682a commit 52d3437
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions setup_tools/findARPACK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,19 @@ message(STATUS "Finding ARPACK")
set(ARPACK_FOUND False)
set(PARPACK_FOUND False)

if(DEFINED ENV{ARPACK_LIBRARIES})
message(STATUS "ARPACK found: $ENV{ARPACK_LIBRARIES}")
set(ARPACK_FOUND True)
set(ARPACK_LIBRARIES $ENV{ARPACK_LIBRARIES})
if(DEFINED ENV{PARPACK_LIBRARIES})
message(STATUS "PARPACK found: $ENV{PARPACK_LIBRARIES}")
set(PARPACK_FOUND True)
set(PARPACK_LIBRARIES $ENV{PARPACK_LIBRARIES})
endif()
return()
endif()

if (NOT DEFINED ENV{ARPACK_ROOT})
message(
STATUS "Environment variable $ARPACK_ROOT not set, searching default locations"
)
message(STATUS "Environment variable $ARPACK_ROOT not set!")
unable_to_find()
return()
endif()

# try to find ARPACK include dir
find_path(ARPACK_INCLUDE_DIR
NAMES arpackdef.h
HINTS $ENV{ARPACK_ROOT}
PATH_SUFFIXES include/arpack installed/include/arpack
HINTS $ENV{ARPACK_ROOT} $ENV{ARPACK_ROOT}/installed
PATH_SUFFIXES
include/arpack
include/arpack-ng
)
if(ARPACK_INCLUDE_DIR)
message(STATUS "Looking for ARPACK include directory - found")
Expand Down

0 comments on commit 52d3437

Please sign in to comment.