Installing CMB Superbuilder

Hello. I am trying to install CMB Superbuilder on Ubuntu 22.04 to use it with the RGG plugin for reactor core design, but I am new to Linux and I am encountering some compilation errors. How can I resolve it?

Best Regards,

Kayra

 CC=/usr/bin/gcc-12 CXX=/usr/bin/g++-12 cmake -GNinja -Wno-dev   -DBUILD_TESTING=0   -DDEVELOPER_MODE_cmb=0 -DDEVELOPER_MODE_smtk=0   -DENABLE_cmbworkflows=1 -DENABLE_DOCUMENTATION=0   -DUSE_SYSTEM_boost=0 -DUSE_SYSTEM_bzip2=1 -DUSE_SYSTEM_freetype=1   -DUSE_SYSTEM_hdf5=0 -DUSE_SYSTEM_libxml2=1 -DUSE_SYSTEM_netcdf=0   -DUSE_SYSTEM_pkgconf=1 -DUSE_SYSTEM_png=1 -DUSE_SYSTEM_python3=0   -DUSE_SYSTEM_qt5=1 -DENABLE_qt5=0   -DUSE_SYSTEM_sqlite=0 -DUSE_SYSTEM_zlib=1   -DENABLE_pythonsetuptoolsscm=1   -DENABLE_vtk=1   -DENABLE_MPI=ON   -DMPI_C_COMPILER=mpicc   -DMPI_CXX_COMPILER=mpicxx   -DENABLE_SZIP=OFF   ../

I ran the configuration with this command

The log in your screenshot shows the actual cause: the szip and sqlite sub-projects fail with “Compatibility with CMake < 3.5 has been removed from CMake”. That happens when the CMake you’re running is 4.x and those bundled projects declare an old cmake_minimum_required. Easiest workarounds are to add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to your configure command (it’s also passed down to the external projects when set as an environment variable, i.e. export CMAKE_POLICY_VERSION_MINIMUM=3.5), or to install a CMake 3.x release (e.g. 3.28/3.30) for this build. Start from a clean build directory after changing it.