[cmake] Refactored (and fixed) processes setup logic.
- Fixed
OGS_BUILD_PROCESSESwith multiple values. -
OGS_BUILD_PROCESSESis now a temporary variable (not cached between CMake runs) and should be set via cli only. -
OGS_BUILD_PROCESSESoverrides individualOGS_BUILD_PROCESS_X-variables:-
-DOGS_BUILD_PROCESSES=ON--> allOGS_BUILD_PROCESS_Xset toON. -
-DOGS_BUILD_PROCESSES=OFF--> allOGS_BUILD_PROCESS_Xset toOFF. - e.g.
-DOGS_BUILD_PROCESSES="HT;TH2M"-->OGS_BUILD_PROCESS_HTandOGS_BUILD_PROCESS_TH2Mset toON, all others set toOFF.
-
I would like to keep the previous implementation in this MR in the git history.
Before this change:
One could use the CMake variables OGS_BUILD_PROCESSES or
OGS_BUILD_PROCESS_XYZ but behavior was not consistent when switching
back and forth and using both methods. Also building multiple
processes via OGS_BUILD_PROCESSES was broken.
Now changed:
RemovedOGS_BUILD_PROCESS_XYZoptions.-
UseOGS_BUILD_PROCESSESwith the following values:ON-> All processes are built.OFF-> Disable all processes.Select a single process by name, e.g.TH2M.Give a ;-separated list of processes, e.g."THM;TH2M"
OGS_BUILD_PROCESSEScan be set via ccmake or cmake-gui with a convenient dropdown, although setting multiple processes can only be done via the cli!
-
Feature description was added to the changelog -
Tests covering your feature were added? -
Any new feature or behavior change was documented?
Edited by Lars Bilke