summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-07-13 12:34:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-07-13 12:34:21 (GMT)
commit91333f1b993a5f9326f6e2da34edad07f146d300 (patch)
treeda43fc8bb0582c43f4b7252cbd00021bea559c31 /Source
parent937fa28a6d88a718401e393fad83ad630a8eb0cb (diff)
parent861dd60ecf2e2bbe133708ea5bc55018931ee050 (diff)
downloadCMake-91333f1b993a5f9326f6e2da34edad07f146d300.zip
CMake-91333f1b993a5f9326f6e2da34edad07f146d300.tar.gz
CMake-91333f1b993a5f9326f6e2da34edad07f146d300.tar.bz2
Merge topic 'genex-REMOVE_DUPLICATES-empty' into release-3.27
861dd60ecf Genex: Restore REMOVE_DUPLICATES preservation of empty elements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8623
Diffstat (limited to 'Source')
-rw-r--r--Source/cmGeneratorExpressionNode.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx
index bb4fc7e..7fe814a 100644
--- a/Source/cmGeneratorExpressionNode.cxx
+++ b/Source/cmGeneratorExpressionNode.cxx
@@ -384,7 +384,9 @@ static const struct RemoveDuplicatesNode : public cmGeneratorExpressionNode
"$<REMOVE_DUPLICATES:...> expression requires one parameter");
}
- return cmList{ parameters.front() }.remove_duplicates().to_string();
+ return cmList{ parameters.front(), cmList::EmptyElements::Yes }
+ .remove_duplicates()
+ .to_string();
}
} removeDuplicatesNode;