# Copyright (c) 2017-2025, Lawrence Livermore National Security, LLC and # other Axom Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: (BSD-3-Clause) #------------------------------------------------------------------------------ # AxomConfig.cmake - Create header of configuration options #------------------------------------------------------------------------------ ## Get Axom version information message(STATUS "Configuring Axom version ${AXOM_VERSION_FULL}") ## Add a definition to the generated config file for each library dependency ## (optional and built-in) that we might need to know about in the code. We ## check for vars of the form _FOUND or ENABLE_ set(TPL_DEPS ADIAK C2C CALIPER CAMP CLI11 CONDUIT CUDA FMT HIP HDF5 LUA MFEM MPI OPENMP OPENCASCADE RAJA SCR SOL SPARSEHASH UMPIRE ZLIB) foreach(dep ${TPL_DEPS}) if( ${dep}_FOUND OR ENABLE_${dep} ) set(AXOM_USE_${dep} TRUE ) endif() endforeach() # Handle MPI Fortran headers if(AXOM_ENABLE_MPI AND ENABLE_FORTRAN) if(MPI_Fortran_USE_MPIF) set(AXOM_USE_MPIF_HEADER TRUE) endif() endif() ## Add a configuration define for each enabled axom component foreach(comp ${AXOM_COMPONENTS_ENABLED}) string(TOUPPER ${comp} comp_uc) set(AXOM_USE_${comp_uc} TRUE) endforeach() ## Add compile-time options to the config file ## Check for options of the form AXOM_ENABLE_