cmake fails to compile metis without a c++ compiler (on Linux)

When a C++ compiler (g++) is not installed cmake fails to compile Metis. I think the check should be disabled using cmake project.

cd metis-5.0.2
make config
rm -rf build/Linux-i686
mkdir -p build/Linux-i686
cd build/Linux-i686 && cmake /tmp/metis-5.0.2 -DCMAKE_VERBOSE_MAKEFILE=1 -DGKLIB_PATH=/tmp/metis-5.0.2/GKlib
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Looking for execinfo.h
-- Looking for execinfo.h - found
-- Looking for getline
-- Looking for getline - found
-- checking for thread-local storage - found
-- Configuring incomplete, errors occurred!
make: *** [config] Error 1