## ---------------------------------------------------------------------
#
-# Configuration for the zlib library:
+# Configuration for the bzip2 library:
#
MACRO(FEATURE_BZIP2_FIND_EXTERNAL var)
INCLUDE(FindPackageHandleStandardArgs)
+SET(ARPACK_DIR "" CACHE PATH "An optional hint to an ARPACK installation")
SET_IF_EMPTY(ARPACK_DIR "$ENV{ARPACK_DIR}")
FIND_LIBRARY(ARPACK_LIBRARY
)
IF(ARPACK_FOUND)
- SET(ARPACK_LIBRARIES
- ${ARPACK_LIBRARY}
- ${LAPACK_LIBRARIES}
- )
- SET(ARPACK_LINKER_FLAGS
- ${LAPACK_LINKER_FLAGS}
- )
+ SET(ARPACK_LIBRARIES ${ARPACK_LIBRARY} ${LAPACK_LIBRARIES})
+ SET(ARPACK_LINKER_FLAGS ${LAPACK_LINKER_FLAGS})
MARK_AS_ADVANCED(ARPACK_DIR)
-ELSE()
- SET(ARPACK_DIR "" CACHE PATH
- "An optional hint to an ARPACK installation"
- )
ENDIF()
# We have to use a trick with CMAKE_PREFIX_PATH to make LAPACK_DIR and
# BLAS_DIR work...
#
+SET(LAPACK_DIR "" CACHE PATH "An optional hint to a LAPACK installation")
+SET(BLAS_DIR "" CACHE PATH "An optional hint to a BLAS installation")
SET_IF_EMPTY(BLAS_DIR "$ENV{BLAS_DIR}")
SET_IF_EMPTY(LAPACK_DIR "$ENV{LAPACK_DIR}")
SET(_cmake_prefix_path_backup "${CMAKE_PREFIX_PATH}")
-
SET(CMAKE_PREFIX_PATH ${BLAS_DIR} ${LAPACK_DIR} ${_cmake_prefix_path_backup})
-
FIND_PACKAGE(BLAS)
-
SET(CMAKE_PREFIX_PATH ${LAPACK_DIR} ${_cmake_prefix_path_backup})
-
FIND_PACKAGE(LAPACK)
-
SET(CMAKE_PREFIX_PATH ${_cmake_prefix_path_backup})
MARK_AS_ADVANCED(
ENDIF()
LIST(REMOVE_ITEM LAPACK_LIBRARIES "FALSE")
- MARK_AS_ADVANCED(
- BLAS_DIR
- LAPACK_DIR
- )
+ MARK_AS_ADVANCED( BLAS_DIR LAPACK_DIR)
ELSE()
SET(DEALII_LAPACK_FOUND FALSE)
- SET(LAPACK_DIR "" CACHE PATH
- "An optional hint to a LAPACK installation"
- )
- SET(BLAS_DIR "" CACHE PATH
- "An optional hint to a BLAS installation"
- )
-
#
# Clean up the library variables in case we couldn't find the libraries
# to avoid spurious inclusions of "-NOTFOUND" or "FALSE":
#
SET(BLAS_LIBRARIES)
SET(LAPACK_LIBRARIES)
-
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(HDF5_DIR "" CACHE PATH "An optional hint to an hdf5 directory")
SET_IF_EMPTY(HDF5_DIR "$ENV{HDF5_DIR}")
FIND_PATH(HDF5_INCLUDE_DIR hdf5.h
)
IF(HDF5_FOUND)
- SET(HDF5_INCLUDE_DIRS
- ${HDF5_INCLUDE_DIR}
- )
- SET(HDF5_LIBRARIES
- ${HDF5_HL_LIBRARY}
- ${HDF5_LIBRARY}
- ${MPI_C_LIBRARIES} # for good measure
- )
+ SET(HDF5_INCLUDE_DIRS ${HDF5_INCLUDE_DIR})
+ SET(HDF5_LIBRARIES ${HDF5_HL_LIBRARY} ${HDF5_LIBRARY} ${MPI_C_LIBRARIES})
#
# Is hdf5 compiled with support for mpi?
#
FILE(STRINGS ${HDF5_PUBCONF} HDF5_MPI_STRING
- REGEX "#define.*H5_HAVE_PARALLEL 1")
+ REGEX "#define.*H5_HAVE_PARALLEL 1"
+ )
IF("${HDF5_MPI_STRING}" STREQUAL "")
SET(HDF5_WITH_MPI FALSE)
ELSE()
ENDIF()
MARK_AS_ADVANCED(HDF5_DIR)
-ELSE()
- SET(HDF5_DIR "" CACHE PATH
- "An optional hint to an hdf5 directory"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(METIS_DIR "" CACHE PATH "An optional hint to a metis directory")
SET_IF_EMPTY(METIS_DIR "$ENV{METIS_DIR}")
#
)
IF(METIS_FOUND)
-
#
# Sanity check: Only include parmetis library if it is in the same
# directory as the metis library...
)
MARK_AS_ADVANCED(METIS_DIR)
-ELSE()
- SET(METIS_DIR "" CACHE PATH
- "An optional hint to a metis directory"
- )
ENDIF()
-
# MUMPS_VERSION_SUBMINOR
#
+SET(MUMPS_DIR "" CACHE PATH "An optional hint to a mumps directory")
SET_IF_EMPTY(MUMPS_DIR "$ENV{MUMPS_DIR}")
INCLUDE(FindPackageHandleStandardArgs)
DMUMPS_LIBRARY
MUMPS_COMMON_LIBRARY
MUMPS_INCLUDE_DIR
- PORT_LIBRARY
+ PORD_LIBRARY
)
IF(MUMPS_FOUND)
- SET(MUMPS_INCLUDE_DIRS
- ${MUMPS_INCLUDE_DIR}
- )
+ SET(MUMPS_INCLUDE_DIRS ${MUMPS_INCLUDE_DIR})
SET(MUMPS_LIBRARIES
${DMUMPS_LIBRARY}
${MUMPS_COMMON_LIBRARY}
${PORD_LIBRARY}
${SCALAPACK_LIBRARIES}
- ${METIS_LIBRARIES} # for good measure
- ${MPI_Fortran_LIBRARIES} # for good measure
- )
- SET(MUMPS_LINKER_FLAGS
- ${SCALAPACK_LINKER_FLAGS}
+ ${METIS_LIBRARIES}
+ ${MPI_Fortran_LIBRARIES}
)
+ SET(MUMPS_LINKER_FLAGS ${SCALAPACK_LINKER_FLAGS})
MARK_AS_ADVANCED(MUMPS_DIR)
-ELSE()
- SET(MUMPS_DIR "" CACHE PATH
- "An optional hint to a mumps directory"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(MUPARSER_DIR "" CACHE PATH "An optional hint to a MUPARSER installation")
SET_IF_EMPTY(MUPARSER_DIR "$ENV{MUPARSER_DIR}")
FIND_LIBRARY(MUPARSER_LIBRARY
)
MARK_AS_ADVANCED(MUPARSER_DIR)
-ELSE()
- SET(MUPARSER_DIR "" CACHE PATH
- "An optional hint to a MUPARSER installation"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(NETCDF_DIR "" CACHE PATH "An optional hint to a NETCDF installation")
SET_IF_EMPTY(NETCDF_DIR "$ENV{NETCDF_DIR}")
FIND_PATH(NETCDF_INCLUDE_DIR netcdfcpp.h
)
IF(NETCDF_FOUND)
- SET(NETCDF_INCLUDE_DIRS
- ${NETCDF_INCLUDE_DIR}
- )
- SET(NETCDF_LIBRARIES
- ${NETCDF_CPLUSPLUS_LIBRARY}
- ${NETCDF_C_LIBRARY}
- )
+ SET(NETCDF_INCLUDE_DIRS ${NETCDF_INCLUDE_DIR})
+ SET(NETCDF_LIBRARIES ${NETCDF_CPLUSPLUS_LIBRARY} ${NETCDF_C_LIBRARY})
MARK_AS_ADVANCED(NETCDF_DIR)
-ELSE()
- SET(NETCDF_DIR "" CACHE PATH
- "An optional hint to a NETCDF installation"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(P4EST_DIR "" CACHE PATH
+ "An optional hint to a p4est installation/directory"
+ )
SET_IF_EMPTY(P4EST_DIR "$ENV{P4EST_DIR}")
SET_IF_EMPTY(SC_DIR "$ENV{SC_DIR}")
IF("${P4EST_MPI_STRING}" STREQUAL "")
SET(P4EST_WITH_MPI FALSE)
ELSE()
-
SET(P4EST_WITH_MPI TRUE)
ENDIF()
SET(P4EST_VERSION_PATCH "0")
ENDIF()
-
MARK_AS_ADVANCED(P4EST_DIR)
-ELSE()
- SET(P4EST_DIR "" CACHE PATH
- "An optional hint to a p4est installation/directory"
- )
ENDIF()
-
INCLUDE(FindPackageHandleStandardArgs)
+SET(PETSC_DIR "" CACHE PATH "An optional hint to a PETSc directory")
+SET(PETSC_ARCH "" CACHE STRING "An optional hint to a PETSc arch")
SET_IF_EMPTY(PETSC_DIR "$ENV{PETSC_DIR}")
SET_IF_EMPTY(PETSC_ARCH "$ENV{PETSC_ARCH}")
)
IF(PETSC_FOUND)
- SET(PETSC_LIBRARIES
- ${PETSC_LIBRARY}
- ${_petsc_libraries}
- )
+ SET(PETSC_LIBRARIES ${PETSC_LIBRARY} ${_petsc_libraries})
SET(PETSC_INCLUDE_DIRS
${PETSC_INCLUDE_DIR_COMMON}
${PETSC_INCLUDE_DIR_ARCH}
)
MARK_AS_ADVANCED(PETSC_ARCH PETSC_DIR)
-ELSE()
- SET(PETSC_DIR "" CACHE PATH
- "An optional hint to a PETSc directory"
- )
- SET(PETSC_ARCH "" CACHE STRING
- "An optional hint to a PETSc arch"
- )
ENDIF()
# SCALAPACK_LINKER_FLAGS
#
+SET(SCALAPACK_DIR "" CACHE PATH "An optional hint to a SCALAPACK directory")
+SET(BLACS_DIR "" CACHE PATH "An optional hint to a BLACS directory")
SET_IF_EMPTY(SCALAPACK_DIR "$ENV{SCALAPACK_DIR}")
SET_IF_EMPTY(BLACS_DIR "$ENV{BLACS_DIR}")
)
MARK_AS_ADVANCED(
- lapack_LIBRARY
- atlas_LIBRARY
- blas_LIBRARY
SCALAPACK_LIBRARY
BLACS_LIBRARY
BLACSCINIT_LIBRARY
${BLACS_LIBRARIES}
${MPI_Fortran_LIBRARIES} # for good measure
)
- SET(SCALAPACK_LINKER_FLAGS
- ${LAPACK_LINKER_FLAGS}
- )
+ SET(SCALAPACK_LINKER_FLAGS ${LAPACK_LINKER_FLAGS})
MARK_AS_ADVANCED(SCALAPACK_DIR BLACS_DIR)
-ELSE()
- SET(SCALAPACK_DIR "" CACHE PATH
- "An optional hint to a SCALAPACK directory"
- )
- SET(BLACS_DIR "" CACHE PATH
- "An optional hint to a BLACS directory"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(SLEPC_DIR "" CACHE PATH "An optional hint to a SLEPC directory")
SET_IF_EMPTY(SLEPC_DIR "$ENV{SLEPC_DIR}")
SET_IF_EMPTY(PETSC_DIR "$ENV{PETSC_DIR}")
SET_IF_EMPTY(PETSC_ARCH "$ENV{PETSC_ARCH}")
)
MARK_AS_ADVANCED(SLEPC_DIR)
-ELSE()
- SET(SLEPC_DIR "" CACHE PATH
- "An optional hint to a SLEPC directory"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(TBB_DIR "" CACHE PATH "An optional hint to a TBB installation")
SET_IF_EMPTY(TBB_DIR "$ENV{TBB_DIR}")
FIND_PATH(TBB_INCLUDE_DIR tbb/tbb_stddef.h
)
IF(TBB_FOUND)
-
IF(NOT TBB_DEBUG_LIBRARY MATCHES "-NOTFOUND")
SET(TBB_WITH_DEBUGLIB TRUE)
SET(TBB_LIBRARIES debug ${TBB_DEBUG_LIBRARY} optimized ${TBB_LIBRARY})
SET(TBB_INCLUDE_DIRS ${TBB_INCLUDE_DIR})
MARK_AS_ADVANCED(TBB_DIR)
-ELSE()
- SET(TBB_DIR "" CACHE PATH
- "An optional hint to a TBB installation"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(TRILINOS_DIR "" CACHE PATH "An optional hint to a Trilinos installation")
SET_IF_EMPTY(TRILINOS_DIR "$ENV{TRILINOS_DIR}")
#
SET(TRILINOS_LIBRARIES)
SET(TRILINOS_INCLUDE_DIRS)
UNSET(TRILINOS_CONFIG_DIR_SAVED CACHE)
-
- SET(TRILINOS_DIR "" CACHE PATH
- "An optional hint to a Trilinos installation"
- )
ENDIF()
INCLUDE(FindPackageHandleStandardArgs)
+SET(UMFPACK_DIR "" CACHE PATH "An optional hint to an UMFPACK directory")
+SET(SUITESPARSE_DIR "" CACHE PATH
+ "An optional hint to a SUITESPARSE directory"
+ )
FOREACH(_comp SUITESPARSE SUITESPARSE_CONFIG UMFPACK AMD CHOLMOD COLAMD)
SET_IF_EMPTY(${_comp}_DIR "$ENV{${_comp}_DIR}")
ENDFOREACH()
${AMD_INCLUDE_DIR}
${SuiteSparse_config_INCLUDE_DIR}
)
- SET(UMFPACK_LINKER_FLAGS
- ${LAPACK_LINKER_FLAGS}
- )
+ SET(UMFPACK_LINKER_FLAGS ${LAPACK_LINKER_FLAGS})
MARK_AS_ADVANCED(UMFPACK_DIR SUITESPARSE_DIR)
-ELSE()
- SET(UMFPACK_DIR "" CACHE PATH
- "An optional hint to an UMFPACK directory"
- )
- SET(SUITESPARSE_DIR "" CACHE PATH
- "An optional hint to a SUITESPARSE directory"
- )
ENDIF()