summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-09-25 23:25:34 (GMT)
committerBrad King <brad.king@kitware.com>2018-12-11 18:19:39 (GMT)
commit410a3e4b22c72794d4f96e41c1d37d84d6e7e54d (patch)
treedd7c623d4326a2d7f641fc9748045090679a2a0e /bootstrap
parent81bea69bd1d52977c3782d26560f34563394f487 (diff)
downloadCMake-410a3e4b22c72794d4f96e41c1d37d84d6e7e54d.zip
CMake-410a3e4b22c72794d4f96e41c1d37d84d6e7e54d.tar.gz
CMake-410a3e4b22c72794d4f96e41c1d37d84d6e7e54d.tar.bz2
Add support for using C++17 string_view or a fallback
Define a `cm::string_view` type implemented via C++17 `std::string_view` when available. Provide a fallback implementation for C++11 and C++14 compilers. The fallback implementation was written by reading documentation of the standard spec. We have no dedicated tests for it, but it will be covered by tests of its clients later.
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index 6710d1a..dcc3a83 100755
--- a/bootstrap
+++ b/bootstrap
@@ -430,6 +430,7 @@ CMAKE_CXX_SOURCES="\
cmake \
cmakemain \
cmcmd \
+ cm_string_view \
"
if ${cmake_system_mingw}; then