Installing and using Mfront, cmake configuration unsuccessful, cannot run MCC example

Dear OGS community,

I am new to OGS and I am trying to run an example where MCC (modified cam clay) is used as the constitutive model. Here is the link to the project file:
OGS: triaxtest.prj

Apparently this project needs MFront to be installed, which I did. However, when I run the project file via OGS, I get the following error:

info: No source terms for process variable 'displacement' found.
debug: Reading media:
debug: Create Constant property density.
debug: Reading linear solver configuration.
debug: Reading processes:
debug: Create SmallDeformationProcess.
debug: Found process variable 'displacement' for config tag <process_variable>.
debug: Associate displacement with process variable 'displacement'.
critical: /home/aparsi/ogs/MaterialLib/SolidModels/CreateConstitutiveRelation.cpp:84 createConstitutiveRelation()
error: OGS is compiled without MFront support. See OGS_USE_MFRONT CMake option.
info: OGS terminated on 2025-04-22 09:28:32+0200.
error: OGS terminated with error.

I have attached an image that shows I have already turned on the OGS_USE_MFRONT option in my cmake configuration, yet the problem stands.
I would like to ask your experience on how to solve this issue and how I can run these kind of examples.

Regards,

Not sure whether this is an issue for MFRONT as well, but some cmake options need to be set from the start (for the first configure loop). Can you delete all files in your build directory and build OGS again by providing the MFRONT option directly to cmake, either by the correct preset or something like cmake -DOGS_USE_MFRONT=ON -DCMAKE_BUILD_TYPE=Release ../ogs -GNinja.

I believe it has something to do with MGIS.
I installed it, yet when I try to do the configuration and generation of the make files using cmake for the MCC example, I run into this error:

CMake Error at /usr/share/cmake-3.25/Modules/FetchContent.cmake:1616 (message):
   Build step for mgis failed: 2
 Call Stack (most recent call first):
   /usr/share/cmake-3.25/Modules/FetchContent.cmake:1756:EVAL:2 (__FetchContent_directPopulate)
   /usr/share/cmake-3.25/Modules/FetchContent.cmake:1756 (cmake_language)
   scripts/cmake/CPM.cmake:1114 (FetchContent_Populate)
   scripts/cmake/CPM.cmake:892 (cpm_fetch_package)
   scripts/cmake/Dependencies.cmake:169 (CPMAddPackage)
   CMakeLists.txt:86 (include)

I would not install it separately.
I only get this error if the build directory is not empty. If you start with a clean build directory and put everything you want to configure in the cmake command I mentioned above this error should happen, I think.