#
MACRO(FEATURE_LAPACK_FIND_EXTERNAL var)
- FIND_PACKAGE(LAPACK)
+ DEAL_II_FIND_PACKAGE(LAPACK)
#
# We do a check for availability of every single LAPACK function we use.
CLEAR_CMAKE_REQUIRED()
SWITCH_LIBRARY_PREFERENCE()
- FIND_PACKAGE(Threads)
+ DEAL_II_FIND_PACKAGE(Threads)
SWITCH_LIBRARY_PREFERENCE()
RESET_CMAKE_REQUIRED()
#
MACRO(FEATURE_THREADS_FIND_EXTERNAL var)
- FIND_PACKAGE(TBB)
+ DEAL_II_FIND_PACKAGE(TBB)
IF(TBB_FOUND)
SET(${var} TRUE)
#
MACRO(FEATURE_METIS_FIND_EXTERNAL var)
- FIND_PACKAGE(METIS)
+ DEAL_II_FIND_PACKAGE(METIS)
IF(METIS_FOUND)
SET(${var} TRUE)
MACRO(FEATURE_TRILINOS_FIND_EXTERNAL var)
- FIND_PACKAGE(TRILINOS)
+ DEAL_II_FIND_PACKAGE(TRILINOS)
IF(TRILINOS_FOUND)
#
MACRO(FEATURE_PETSC_FIND_EXTERNAL var)
- FIND_PACKAGE(PETSC)
+ DEAL_II_FIND_PACKAGE(PETSC)
IF(PETSC_FOUND)
#
MACRO(FEATURE_HDF5_FIND_EXTERNAL var)
- FIND_PACKAGE(HDF5)
+ DEAL_II_FIND_PACKAGE(HDF5)
IF(HDF5_FOUND)
SET(${var} TRUE)
MACRO(FEATURE_MUMPS_FIND_EXTERNAL var)
- FIND_PACKAGE(MUMPS)
+ DEAL_II_FIND_PACKAGE(MUMPS)
IF(MUMPS_FOUND)
SET(${var} TRUE)
MACRO(FEATURE_P4EST_FIND_EXTERNAL var)
- FIND_PACKAGE(P4EST)
+ DEAL_II_FIND_PACKAGE(P4EST)
IF(P4EST_FOUND)
SET(${var} TRUE)
MACRO(FEATURE_SLEPC_FIND_EXTERNAL var)
- FIND_PACKAGE(SLEPC)
+ DEAL_II_FIND_PACKAGE(SLEPC)
IF(SLEPC_FOUND)
#
# Default macro for finding an external library:
#
MACRO(FEATURE_FIND_EXTERNAL _feature _var)
- FIND_PACKAGE(${_feature})
+ DEAL_II_FIND_PACKAGE(${_feature})
IF(${_feature}_FOUND)
SET(${_var} TRUE)
ENDIF()
## ---------------------------------------------------------------------
## $Id$
##
-## Copyright (C) 2013 by the deal.II authors
+## Copyright (C) 2013 - 2014 by the deal.II authors
##
## This file is part of the deal.II library.
##
# ${package}_FOUND and ${package}_LIBRARIES to allow easy custom overrides
#
-MACRO(FIND_PACKAGE _package_name)
+MACRO(DEAL_II_FIND_PACKAGE _package_name)
STRING(TOUPPER ${_package_name} _package_name_uppercase)
IF( NOT DEFINED ${_package_name_uppercase}_FOUND AND
NOT DEFINED ${_package_name_uppercase}_LIBRARIES )
- _FIND_PACKAGE (${_package_name} ${ARGN})
+ FIND_PACKAGE (${_package_name} ${ARGN})
ELSE()
IF(NOT DEFINED ${_package_name_uppercase}_FOUND)
SET(${_package_name_uppercase}_FOUND TRUE)
SET(Boost_USE_STATIC_LIBS TRUE)
ENDIF()
-FIND_PACKAGE(Boost 1.44 COMPONENTS iostreams serialization system thread)
+DEAL_II_FIND_PACKAGE(Boost 1.44 COMPONENTS iostreams serialization system thread)
#
# Fall back to dynamic libraries if no static libraries could be found:
#
IF(NOT Boost_FOUND AND Boost_USE_STATIC_LIBS)
SET(Boost_USE_STATIC_LIBS FALSE)
- FIND_PACKAGE(Boost 1.44 COMPONENTS iostreams serialization system thread)
+ DEAL_II_FIND_PACKAGE(Boost 1.44 COMPONENTS iostreams serialization system thread)
ENDIF()
IF(Boost_FOUND)
#
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-FIND_PACKAGE(BZip2)
+DEAL_II_FIND_PACKAGE(BZip2)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
SET(BZIP2_VERSION ${BZIP2_VERSION_STRING})
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
SET(CMAKE_PREFIX_PATH ${BLAS_DIR} ${LAPACK_DIR} ${_cmake_prefix_path_backup})
-FIND_PACKAGE(BLAS)
+DEAL_II_FIND_PACKAGE(BLAS)
SET(CMAKE_PREFIX_PATH ${LAPACK_DIR} ${_cmake_prefix_path_backup})
-FIND_PACKAGE(LAPACK)
+DEAL_II_FIND_PACKAGE(LAPACK)
SET(CMAKE_PREFIX_PATH ${_cmake_prefix_path_backup})
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
# Call the system FindMPI.cmake module:
#
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-FIND_PACKAGE(MPI)
+DEAL_II_FIND_PACKAGE(MPI)
IF(NOT MPI_CXX_FOUND AND DEAL_II_WITH_MPI)
#
"MPI not found but DEAL_II_WITH_MPI is set to TRUE."
" Try again with more aggressive search paths:"
)
- # Clear variables so that FIND_PACKAGE runs again:
+ # Clear variables so that DEAL_II_FIND_PACKAGE runs again:
SET(MPI_FOUND)
UNSET(MPI_CXX_COMPILER CACHE)
UNSET(MPI_C_COMPILER CACHE)
UNSET(MPI_Fortran_COMPILER CACHE)
- FIND_PACKAGE(MPI)
+ DEAL_II_FIND_PACKAGE(MPI)
ENDIF()
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
#
# Include the trilinos package configuration:
#
-FIND_PACKAGE(TRILINOS_CONFIG
+DEAL_II_FIND_PACKAGE(TRILINOS_CONFIG
CONFIG QUIET
NAMES Trilinos TRILINOS
HINTS
SET(ZLIB_ROOT ${ZLIB_DIR})
ENDIF()
LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-FIND_PACKAGE(ZLIB)
+DEAL_II_FIND_PACKAGE(ZLIB)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
SET(ZLIB_VERSION ${ZLIB_VERSION_STRING})
fulfilled. In this case all necessary variables for
FEATURE_<FEATURE>_CONFIGURE_EXTERNAL must be set.
Otherwise var should remain unset.
- If this macro is undefined, FIND_PACKAGE(<FEATURES>) is
+ If this macro is undefined, DEAL_II_FIND_PACKAGE(<FEATURES>) is
called directly instead.
FEATURE_<FEATURE>_CONFIGURE_EXTERNAL() (a macro)