diff --git a/CMakeLists.txt b/CMakeLists.txt index 0dc5c7270cb65f8e8ee87f1084b9c2803b30e070..1e0775a9b136872e4da24ce0778f390fe22b81b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,17 +131,24 @@ 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 INTERNAL "") +endif() if(NOT "${OGS_BUILD_PROCESSES}" STREQUAL "") - foreach(process ${OGS_BUILD_PROCESSES}) - if(NOT "${process}" IN_LIST ProcessesList) - message( - FATAL_ERROR - "${process} given in OGS_BUILD_PROCESSES is " - "not a valid process name! Valid names are ${ProcessesList}" - ) - endif() - endforeach() - message(STATUS "Enabled processes:") + if(${OGS_BUILD_PROCESSES}) + foreach(process ${OGS_BUILD_PROCESSES}) + if(NOT "${process}" IN_LIST ProcessesList) + message( + FATAL_ERROR + "${process} given in OGS_BUILD_PROCESSES is " + "not a valid process name! Valid names are ${ProcessesList}" + ) + endif() + endforeach() + message(STATUS "Enabled processes:") + else() + message(STATUS "All processes disabled.") + endif() foreach(process ${ProcessesList}) if("${process}" IN_LIST OGS_BUILD_PROCESSES) set(OGS_BUILD_PROCESS_${process} ON CACHE BOOL "" FORCE) @@ -150,7 +157,6 @@ if(NOT "${OGS_BUILD_PROCESSES}" STREQUAL "") set(OGS_BUILD_PROCESS_${process} OFF CACHE BOOL "" FORCE) endif() endforeach() - endif() if(WIN32) diff --git a/web/content/docs/devguide/advanced/configuration-options.pandoc b/web/content/docs/devguide/advanced/configuration-options.pandoc index 74a97145d02ba48b863ac946bd2b82c689691347..a0436243fabd01634f9d3b22fc419beeb198b8d4 100644 --- a/web/content/docs/devguide/advanced/configuration-options.pandoc +++ b/web/content/docs/devguide/advanced/configuration-options.pandoc @@ -17,14 +17,14 @@ Some of these options are enabled by default ("*Defaults* to *ON*") otherwise th CMake switches to enable / disable parts of OGS. -- `OGS_BUILD_CLI` - Builds the simulator. *Defaults* to *ON*. +- `OGS_BUILD_CLI` - Builds the simulator. *Defaults* to *ON*. If set to *OFF* all processes are also disabled. - `OGS_BUILD_GUI` - Builds the Data Explorer. *Defaults* to *OFF*. - `BUILD_TESTING` - Builds the test executables. *Defaults* to *ON*. - `OGS_BUILD_UTILS` - Builds several utilities. - `OGS_NO_EXTERNAL_LIBS` - Disables all external optional dependencies. - `OGS_BUILD_PROCESS_X` - For enabling/disabling compilation of process `X`. Run the CMake-Gui to see a list of processes. -- `OGS_BUILD_PROCESSES` - A `;`-separated list specifying processes to build. *Defaults* to an *empty string*. This will alter the `OGS_BUILD_PROCESS_X`-options. For e.g. building just the two processes `HT` and `LIE`: `-DOGS_BUILD_PROCESSES="HT;LIE"`. Setting this variable back to an empty string **does not reset** the `OGS_BUILD_PROCESS_X`-options. +- `OGS_BUILD_PROCESSES` - A `;`-separated list specifying processes to build. *Defaults* to an *empty string*. This will alter the `OGS_BUILD_PROCESS_X`-options. For e.g. building just the two processes `HT` and `LIE`: `-DOGS_BUILD_PROCESSES="HT;LIE"`. Setting this variable back to an empty string **does not reset** the `OGS_BUILD_PROCESS_X`-options. You can also set it to *OFF* to disable all processes. #### Debugging