summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:04 (GMT)
commit5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch)
tree440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/cmLocalGenerator.cxx
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadCMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.zip
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.bz2
Source: Minor code improvements
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index db7357a..fbbdfca 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2786,7 +2786,7 @@ void cmLocalGenerator::IncludeFileInUnitySources(
cmGeneratedFileStream& unity_file, std::string const& sf_full_path,
cmProp beforeInclude, cmProp afterInclude, cmProp uniqueIdName) const
{
- if (uniqueIdName && !uniqueIdName->empty()) {
+ if (cmNonempty(uniqueIdName)) {
std::string pathToHash;
auto PathEqOrSubDir = [](std::string const& a, std::string const& b) {
return (cmSystemTools::ComparePath(a, b) ||