set(Boost_USE_STATIC_LIBS TRUE)
endif()
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-
# Work around a CMake compatibility issue with boost-1.70.0
# compare https://gitlab.kitware.com/cmake/cmake/issues/18865
# and https://lists.boost.org/Archives/boost/2019/02/245016.php
serialization system thread
)
endif()
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
#
# Fall back to dynamic libraries if no static libraries could be found:
# fail cracefully:
#
if(DEAL_II_HAVE_CXX17 AND NOT FEATURE_BOOST_BUNDLED_CONFIGURED)
- # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
- list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
set(CGAL_DO_NOT_WARN_ABOUT_CMAKE_BUILD_TYPE ON)
find_package(CGAL QUIET)
message(STATUS "CGAL wrappers require CGAL version 5 and above.")
endif()
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-
if(CGAL_FOUND)
get_target_property(CGAL_LIBRARIES CGAL::CGAL INTERFACE_LINK_LIBRARIES)
set(CUDA_TOOLKIT_ROOT_DIR "${CUDA_DIR}")
endif()
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
find_package(CUDA)
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
if(CUDA_FOUND)
message(STATUS "Configured to use CUDA installation at ${CUDA_TOOLKIT_ROOT_DIR}")
set(HDF5_DIR "" CACHE PATH "An optional hint to an hdf5 directory")
set_if_empty(HDF5_DIR "$ENV{HDF5_DIR}")
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-
if(NOT "${HDF5_DIR}" STREQUAL "")
set(HDF5_ROOT "${HDF5_DIR}")
endif()
set(HDF5_PREFER_PARALLEL TRUE)
find_package(HDF5)
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
-
set(_include_dirs "${HDF5_INCLUDE_DIRS}")
set(_libraries "${HDF5_LIBRARIES};${HDF5_HL_LIBRARIES}")
# Let deal.II know that we have found Kokkos
set(KOKKOS_FOUND ON)
else()
- # temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
- list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
find_package(Kokkos 3.7.0 QUIET
HINTS ${KOKKOS_DIR} ${Kokkos_DIR} $ENV{Kokkos_DIR}
)
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
if(Kokkos_FOUND)
# We are only interested in Kokkos if it is not part of Trilinos
set(_cmake_prefix_path_backup "${CMAKE_PREFIX_PATH}")
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-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)
find_package(LAPACK)
set(CMAKE_PREFIX_PATH ${_cmake_prefix_path_backup})
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
#
# Filter out spurious "FALSE" in the library lists:
find_program(MPIEXEC $ENV{MPIEXEC})
endif()
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
find_package(MPI)
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
#
# Older versions of MPI may not have MPI_SEEK_SET, which we
# SymEngine overwrites the CMake module path, so we save
# and restore it after this library is found and configured.
#
-set (DEAL_II_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
+set(_cmake_module_path ${CMAKE_MODULE_PATH})
#
# Include the SymEngine:
#
# Reset the CMake module path
#
-set (CMAKE_MODULE_PATH ${DEAL_II_CMAKE_MODULE_PATH})
+set(CMAKE_MODULE_PATH ${_cmake_module_path})
#
if(NOT "${ZLIB_DIR}" STREQUAL "")
set(ZLIB_ROOT ${ZLIB_DIR})
endif()
-# temporarily disable ${CMAKE_SOURCE_DIR}/cmake/modules for module lookup
-list(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
find_package(ZLIB)
-list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
set(ZLIB_VERSION ${ZLIB_VERSION_STRING})