${UMFPACK_DIR}/../AMD/
PATH_SUFFIXES
amd include/amd include Include AMD/Include
-)
+ )
FIND_LIBRARY(AMD_LIBRARY
NAMES amd
lib${LIB_SUFFIX} lib64 lib Lib AMD/Lib
)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(AMD DEFAULT_MSG AMD_LIBRARY AMD_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(AMD DEFAULT_MSG
+ AMD_LIBRARY
+ AMD_INCLUDE_DIR
+ )
IF(AMD_FOUND)
MARK_AS_ADVANCED(
FIND_LIBRARY(ARPACK_LIBRARY
NAMES arpack
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+ )
SET(ARPACK_LIBRARIES
${ARPACK_LIBRARY}
INCLUDE(FindPackageHandleStandardArgs)
+SET_IF_EMPTY(HDF5_DIR "$ENV{HDF5_DIR}")
+
FIND_PATH(HDF5_INCLUDE_DIR hdf5.h
HINTS
${HDF5_DIR}
hdf5 include/hdf5 include
)
-FIND_LIBRARY(HDF5_LIBRARY
- NAMES hdf5
- PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+FIND_LIBRARY(HDF5_LIBRARY NAMES hdf5
+ HINTS
+ ${HDF5_DIR}
+ PATH_SUFFIXES
+ lib${LIB_SUFFIX} lib64 lib
+ )
-FIND_LIBRARY(HDF5_HL_LIBRARY
- NAMES hdf5_hl
- PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+FIND_LIBRARY(HDF5_HL_LIBRARY NAMES hdf5_hl
+ HINTS
+ ${HDF5_DIR}
+ PATH_SUFFIXES
+ lib${LIB_SUFFIX} lib64 lib
+ )
FIND_PACKAGE_HANDLE_STANDARD_ARGS(HDF5 DEFAULT_MSG
- HDF5_INCLUDE_DIR
HDF5_LIBRARY
HDF5_HL_LIBRARY
+ HDF5_INCLUDE_DIR
)
SET(HDF5_INCLUDE_DIRS
IF(HDF5_FOUND)
MARK_AS_ADVANCED(
- HDF5_INCLUDE_DIR
- HDF5_LIBRARY
- HDF5_HL_LIBRARY
- )
+ HDF5_DIR
+ HDF5_LIBRARY
+ HDF5_HL_LIBRARY
+ HDF5_INCLUDE_DIR
+ )
+ELSE()
+ SET(HDF5_DIR "" CACHE STRING
+ "An optional hint to an hdf5 directory"
+ )
ENDIF()
SET(MUMPS_LIBRARIES
${DMUMPS_LIBRARY}
${MUMPS_COMMON_LIBRARY}
- ${LAPACK_LIBRARIES}
+ ${SCALAPACK_LIBRARIES}
)
#
-# If we can find libport.a (or similiar), link it in as well:
+# If we can find libport.so (or similiar), link it in as well:
#
FIND_LIBRARY(PORD_LIBRARY
NAMES port
ENDIF()
SET(MUMPS_LINKER_FLAGS
- ${LAPACK_LINKER_FLAGS}
+ ${SCALAPACK_LINKER_FLAGS}
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MUMPS DEFAULT_MSG
MUMPS_INCLUDE_DIRS
PORT_LIBRARY
)
+ELSE()
+ SET(MUMPS_DIR "" CACHE STRING
+ "An optional hint to a mumps directory"
+ )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
-FIND_PATH(NETCDF_INCLUDE_DIR netcdf.hh
-)
+FIND_PATH(NETCDF_INCLUDE_DIR netcdf.hh)
#
# TODO: netcdf might externally depend on hdf5. Check and fix this.
#
-FIND_LIBRARY(NETCDF_LIBRARY
- NAMES netcdf_c++ netcdf_cpp
- PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+FIND_LIBRARY(NETCDF_LIBRARY NAMES netcdf_c++ netcdf_cpp
+ PATH_SUFFIXES
+ lib${LIB_SUFFIX} lib64 lib
+ )
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETCDF DEFAULT_MSG NETCDF_LIBRARY NETCDF_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETCDF DEFAULT_MSG
+ NETCDF_LIBRARY
+ NETCDF_INCLUDE_DIR
+ )
IF(NETCDF_FOUND)
MARK_AS_ADVANCED(
)
IF(P4EST_FOUND)
-
#
# Determine mpi support of p4est:
#
#
FIND_PACKAGE(LAPACK)
-FIND_LIBRARY(SCALAPACK_LIBRARY
- NAMES scalapack
+FIND_LIBRARY(SCALAPACK_LIBRARY NAMES scalapack
HINTS
${SCALAPACK_DIR}
- PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+ PATH_SUFFIXES
+ lib${LIB_SUFFIX} lib64 lib
+ )
SET(SCALAPACK_LIBRARIES
${SCALAPACK_LIBRARY}
lapack_LIBRARY
atlas_LIBRARY
blas_LIBRARY
+ SCALAPACK_DIR
SCALAPACK_LIBRARY
+ BLACS_DIR
BLACS_LIBRARY
BLACSCINIT_LIBRARY
BLACSF77INIT_LIBRARY
)
+ELSE()
+ SET(SCALAPACK_DIR "" CACHE STRING
+ "An optional hint to a SCALAPACK directory"
+ )
+ SET(BLACS_DIR "" CACHE STRING
+ "An optional hint to a BLACS directory"
+ )
ENDIF()
${UMFPACK_DIR}/../SuiteSparse_config
PATH_SUFFIXES
include SuiteSparse_config
-)
+ )
FIND_LIBRARY(SUITESPARSECONFIG_LIBRARY
NAMES suitesparseconfig
INCLUDE(FindPackageHandleStandardArgs)
-FIND_PATH(TBB_INCLUDE_DIR tbb/parallel_reduce.h
-)
+FIND_PATH(TBB_INCLUDE_DIR tbb/parallel_reduce.h)
FIND_LIBRARY(TBB_LIBRARY
NAMES tbb
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+ )
FIND_LIBRARY(TBB_DEBUG_LIBRARY
NAMES tbb_debug
PATH_SUFFIXES lib${LIB_SUFFIX} lib64 lib
-)
+ )
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB DEFAULT_MSG TBB_LIBRARY TBB_INCLUDE_DIR)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB_DEBUG DEFAULT_MSG TBB_DEBUG_LIBRARY TBB_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB DEFAULT_MSG
+ TBB_LIBRARY
+ TBB_INCLUDE_DIR
+ )
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TBB_DEBUG DEFAULT_MSG
+ TBB_DEBUG_LIBRARY
+ TBB_INCLUDE_DIR
+ )
IF(TBB_FOUND)
MARK_AS_ADVANCED(