==> ./bootstrap --prefix=/usr/local/Cellar/cmake/3.25.1 --no-system-libs --parallel=16 --datadir=/sh
Last 15 lines from /Users/pngchr/Library/Logs/Homebrew/cmake/01.bootstrap:
-DCMake_BUILD_LTO=ON
---------------------------------------------
CMake 3.25.1, Copyright 2000-2022 Kitware, Inc. and Contributors
C compiler on this system is: clang
---------------------------------------------
Error when bootstrapping CMake:
Cannot find a C++ compiler that supports both C++11 and the specified C++ flags.
Please specify one using environment variable CXX.
The C++ flags are "".
They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted.
---------------------------------------------
Log of errors: /private/tmp/cmake-20230117-66018-tnf1mi/cmake-3.25.1/Bootstrap.cmk/cmake_bootstrap.log