From fb45c37160e4f8d839a2c29bce80cae7563cfd3a Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 10 Sep 2015 23:00:27 +0200 Subject: [PATCH] cmState: Only append non-empty values to buildsystem properties. This is a change in behavior from CMake 3.3, but there is no semantic meaning to empty entries in buildsystem properties. This also restores behavior to that of CMake 2.8.10. --- Source/cmState.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/cmState.cxx b/Source/cmState.cxx index b66f403bc..f8971adff 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -1378,6 +1378,11 @@ template void AppendEntry(T& content, U& backtraces, V& endContentPosition, const std::string& value, const cmListFileBacktrace& lfbt) { + if (value.empty()) + { + return; + } + assert(endContentPosition == content.size()); content.push_back(value);