summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-01-09 20:56:40 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-01-15 14:27:44 (GMT)
commita9c483071eb8a5b5da38726f42be98a2392f7a7f (patch)
treea1dfc2d3a42e84f89342b5845ea6795c1ccff654 /Source/cmake.cxx
parente40541339ae8a780bc410f0ef8b22d01e594c1ba (diff)
downloadCMake-a9c483071eb8a5b5da38726f42be98a2392f7a7f.zip
CMake-a9c483071eb8a5b5da38726f42be98a2392f7a7f.tar.gz
CMake-a9c483071eb8a5b5da38726f42be98a2392f7a7f.tar.bz2
cmCacheManager: Truncate values containing newlines
Fixes #16098.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 2a5bb6c..152352f 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1770,7 +1770,7 @@ bool cmake::LoadCache(const std::string& path, bool internal,
bool cmake::SaveCache(const std::string& path)
{
- bool result = this->State->SaveCache(path);
+ bool result = this->State->SaveCache(path, this->GetMessenger());
static const char* entries[] = { "CMAKE_CACHE_MAJOR_VERSION",
"CMAKE_CACHE_MINOR_VERSION",
"CMAKE_CACHE_PATCH_VERSION",