summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBen Chaney <chaneybenjamini@gmail.com>2018-03-14 04:10:54 (GMT)
committerBrad King <brad.king@kitware.com>2018-03-14 15:28:10 (GMT)
commit25eb6e60d7079aa911031bd66b72b61379ed6c22 (patch)
treeed49df18669235b6bccdc91bd33a7b98377016e1 /bootstrap
parent3d5717ebfd281abc45dfddff7eab2d0a6b4fe2ac (diff)
downloadCMake-25eb6e60d7079aa911031bd66b72b61379ed6c22.zip
CMake-25eb6e60d7079aa911031bd66b72b61379ed6c22.tar.gz
CMake-25eb6e60d7079aa911031bd66b72b61379ed6c22.tar.bz2
bootstrap: Clarify error when building with invalid CXXFLAGS
Mention the flags used when complaining that the compiler does not work.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 0bee6c5..d152c34 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1116,8 +1116,10 @@ done
rm -f "${TMPFILE}.cxx"
if [ -z "${cmake_cxx_compiler}" ]; then
-cmake_error 7 "Cannot find a C++ compiler supporting C++11 on this system.
+cmake_error 7 "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 \"$cmake_cxx_flags\".
+They can be changed using the environment variable CXXFLAGS.
See cmake_bootstrap.log for compilers attempted."
fi
echo "C++ compiler on this system is: ${cmake_cxx_compiler} ${cmake_cxx_flags}"