Revision 98812326bc0eba07972822b48c07709e1929c861 authored by Dmitri Naumov on 12 November 2021, 08:19:07 UTC, committed by Dmitri Naumov on 18 November 2021, 22:34:09 UTC
1 parent 0b0ea97
ProcessesSetup.cmake
# A list of processes to be build. Also used in the ProcessLib to select
# processes to be build.
set(_processes_list
ComponentTransport
StokesFlow
HT
HeatConduction
HeatTransportBHE
HydroMechanics
LiquidFlow
LIE
ThermoRichardsMechanics
PhaseField
RichardsComponentTransport
RichardsFlow
RichardsMechanics
SmallDeformation
SmallDeformationNonlocal
SteadyStateDiffusion
TES
TH2M
ThermalTwoPhaseFlowWithPP
ThermoHydroMechanics
ThermoMechanicalPhaseField
ThermoMechanics
ThermoRichardsFlow
TwoPhaseFlowWithPP
TwoPhaseFlowWithPrho
)
# Add a cmake option for each process.
foreach(process ${_processes_list})
option(OGS_BUILD_PROCESS_${process} "Build the ${process} process." ON)
endforeach()
set(OGS_BUILD_PROCESSES ""
CACHE STRING "Semicolon-separated list of processes to build"
)
if(NOT OGS_BUILD_CLI)
set(OGS_BUILD_PROCESSES OFF "" CACHE STRING "" FORCE)
message(
STATUS
"ATTENTION: OGS_BUILD_CLI=OFF -> OGS_BUILD_PROCESSES is set to OFF too.\n"
" If cli is switched on again, remember to switch processes back to on \n"
" too with -DOGS_BUILD_PROCESSES=\"\"!"
)
endif()
if(NOT "${OGS_BUILD_PROCESSES}" STREQUAL "")
if(${OGS_BUILD_PROCESSES})
foreach(process ${OGS_BUILD_PROCESSES})
if(NOT "${process}" IN_LIST _processes_list)
message(
FATAL_ERROR
"${process} given in OGS_BUILD_PROCESSES is "
"not a valid process name! Valid names are ${_processes_list}"
)
endif()
endforeach()
message(STATUS "Enabled processes:")
else()
message(STATUS "All processes disabled.")
endif()
foreach(process ${_processes_list})
if("${process}" IN_LIST OGS_BUILD_PROCESSES)
set(OGS_BUILD_PROCESS_${process} ON CACHE BOOL "" FORCE)
message(STATUS " ${process}")
else()
set(OGS_BUILD_PROCESS_${process} OFF CACHE BOOL "" FORCE)
endif()
endforeach()
endif()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...