mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Provide `clang` for developers who prefer to build with it rather than with the default `g++`, and `valgrind` to run CMake and its tests under a memory checker. The sanitizer runtimes already come with both compilers, so building with `-fsanitize=` needs nothing installed. Name `gfortran` as well, without which Clang cannot link at all. Ubuntu 26.04 carries a Fortran-only `gcc-16` build that provides no C++ standard library, `libopenmpi-dev` lists `gfortran-16` first among the alternatives it accepts, and Clang selects the newest GCC installation it finds. Naming `gfortran` lets `apt` satisfy that dependency with `gfortran-15` instead, so the GCC 16 installation never appears. Suggested-by: Tyler Yankee <tyler.yankee@kitware.com>