SET(SLEPC_DIR "" CACHE PATH
"An optional hint to a SLEPc directory"
)
- SET(SLEPC_ARCH "" CACHE STRING
- "An optional hint to a SLEPc arch"
- )
SET(${var} FALSE)
ENDIF()
" $ SLEPC_DIR=\"...\" cmake <...>\n"
" $ cmake -DSLEPC_DIR=\"...\" <...>\n"
"SLEPc compiled in source tree:\n"
- " $ SLEPC_DIR=\"...\" SLEPC_ARCH=\"...\" cmake <...>\n"
- " $ cmake -DSLEPC_DIR=\"...\" -DSLEPC_ARCH=\"...\" <...>\n"
+ " $ SLEPC_DIR=\"...\"\n"
+ " $ cmake -DSLEPC_DIR=\"...\"\n"
"or set the relevant variables by hand in ccmake.\n\n"
)
ENDMACRO()
INCLUDE(FindPackageHandleStandardArgs)
SET_IF_EMPTY(SLEPC_DIR "$ENV{SLEPC_DIR}")
-SET_IF_EMPTY(SLEPC_ARCH "$ENV{SLEPC_ARCH}")
SET_IF_EMPTY(PETSC_DIR "$ENV{PETSC_DIR}")
SET_IF_EMPTY(PETSC_ARCH "$ENV{PETSC_ARCH}")
HINTS
# SLEPC is special. Account for that
${SLEPC_DIR}
- ${SLEPC_DIR}/${SLEPC_ARCH}
${SLEPC_DIR}/${PETSC_ARCH}
${PETSC_DIR}
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
HINTS
# SLEPC is special. Account for that
${SLEPC_DIR}
- ${SLEPC_DIR}/${SLEPC_ARCH}
${SLEPC_DIR}/${PETSC_ARCH}
${SLEPC_INCLUDE_DIRS}
${PETSC_DIR}
FIND_PATH(SLEPC_INCLUDE_DIR_COMMON slepcversion.h
HINTS
${SLEPC_DIR}
- ${SLEPC_DIR}/${SLEPC_ARCH}
${SLEPC_DIR}/${PETSC_ARCH}
${SLEPC_INCLUDE_DIRS}
${PETSC_DIR}
SET(SLEPC_VERSION "${SLEPC_VERSION_MAJOR}.${SLEPC_VERSION_MINOR}.${SLEPC_VERSION_SUBMINOR}")
MARK_AS_ADVANCED(
- SLEPC_ARCH
SLEPC_DIR
SLEPC_INCLUDE_DIR_ARCH
SLEPC_INCLUDE_DIR_COMMON
SET(SLEPC_DIR "" CACHE PATH
"An optional hint to a SLEPC directory"
)
- SET(SLEPC_ARCH "" CACHE STRING
- "An optional hint to a SLEPC arch"
- )
ENDIF()
#
# Specify a hint with CMAKE_PREFIX_PATH or by setting
# SET(SLEPC_DIR "/.../..." CACHE PATH "")
-# SET(SLEPC_ARCH "..." CACHE STRING "")
#
# Manual setup:
#
MUMPS_DIR (and SCALAPACK_DIR, BLACS_DIR),
P4EST_DIR (and SC_DIR),
PETSC_DIR and PETSC_ARCH (forming ${PETSC_DIR}/${PETSC_ARCH}),
- SLEPC_DIR and SLEPC_ARCH (forming ${SLEPC_DIR}/${SLEPC_ARCH}),
+ SLEPC_DIR (forming ${SLEPC_DIR}/${PETSC_ARCH}),
TBB_DIR,
TRILINOS_DIR,
UMFPACK_DIR and SUITESPARSE_DIR (AMD_DIR, CHOLMOD_DIR, COLAMD_DIR, SUITESPARSECONFIG_DIR)