summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-28 19:15:30 (GMT)
committerBrad King <brad.king@kitware.com>2017-08-29 15:05:19 (GMT)
commit4a275f63206be052f9ab32a35a58681469374ba9 (patch)
tree8f8f9a5e38be450614b81201760732b8fb3b60c5 /bootstrap
parente710d6953dae27f73452095df6d7b2d7ec698fd1 (diff)
downloadCMake-4a275f63206be052f9ab32a35a58681469374ba9.zip
CMake-4a275f63206be052f9ab32a35a58681469374ba9.tar.gz
CMake-4a275f63206be052f9ab32a35a58681469374ba9.tar.bz2
bootstrap: Require compiler mode aware of C++11
Some compilers have enough features enabled in their default modes to pass our simple C++11 unique_ptr check but do not enable enough to build CMake. Poison this case so that we choose one of the explicit `-std=` options for such compilers.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap8
1 files changed, 6 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index e543d62..430f53b 100755
--- a/bootstrap
+++ b/bootstrap
@@ -988,8 +988,12 @@ echo '
#include <iostream>
#include <memory>
-#if __cplusplus >= 201103L && defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
-#error "SunPro <= 5.13 C++ 11 mode not supported due to bug in move semantics."
+#if __cplusplus < 201103L
+#error "Compiler is not in a mode aware of C++11."
+#endif
+
+#if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
+#error "SunPro <= 5.13 mode not supported due to bug in move semantics."
#endif
class Class