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.
This commit is contained in:
Stephen Kelly 2015-09-10 23:00:27 +02:00
parent 158f7e31dc
commit fb45c37160
1 changed files with 5 additions and 0 deletions

View File

@ -1378,6 +1378,11 @@ template <typename T, typename U, typename V>
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);