summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-01-18 19:55:44 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-01-18 20:52:01 (GMT)
commitedb505921617ad2afc9acee2d246092cbaea3854 (patch)
tree5f88079b6a7a870d415f1707a4fd544cc96326c8 /Source/cmGetPropertyCommand.cxx
parent7d26baff46072055e4cdf56a52634c9e7ff4ee50 (diff)
downloadCMake-edb505921617ad2afc9acee2d246092cbaea3854.zip
CMake-edb505921617ad2afc9acee2d246092cbaea3854.tar.gz
CMake-edb505921617ad2afc9acee2d246092cbaea3854.tar.bz2
define_property(): Make BRIEF_DOCS and FULL_DOCS optional
Issue: #20698
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index b74ed48..4a25311 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -184,7 +184,8 @@ bool cmGetPropertyCommand(std::vector<std::string> const& args,
status.GetMakefile().GetState()->GetPropertyDefinition(propertyName,
scope)) {
output = def->GetShortDescription();
- } else {
+ }
+ if (output.empty()) {
output = "NOTFOUND";
}
status.GetMakefile().AddDefinition(variable, output);
@@ -195,7 +196,8 @@ bool cmGetPropertyCommand(std::vector<std::string> const& args,
status.GetMakefile().GetState()->GetPropertyDefinition(propertyName,
scope)) {
output = def->GetFullDescription();
- } else {
+ }
+ if (output.empty()) {
output = "NOTFOUND";
}
status.GetMakefile().AddDefinition(variable, output);