summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-01-13 20:59:48 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-01-20 14:05:35 (GMT)
commitfce24e4f102686c5c103db301bb698e0ea82765f (patch)
treee5effdc88ea773c899b08b084aaf89dc936885dc /Source/cmState.cxx
parent1ca83ae2bbf9e474c46b6ea094c5035420bbfd45 (diff)
downloadCMake-fce24e4f102686c5c103db301bb698e0ea82765f.zip
CMake-fce24e4f102686c5c103db301bb698e0ea82765f.tar.gz
CMake-fce24e4f102686c5c103db301bb698e0ea82765f.tar.bz2
define_property(): Add INITIALIZE_FROM_VARIABLE argument
Fixes: #20698
Diffstat (limited to 'Source/cmState.cxx')
-rw-r--r--Source/cmState.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 07b4759..f1144e1 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -327,10 +327,12 @@ cmStateSnapshot cmState::Reset()
void cmState::DefineProperty(const std::string& name,
cmProperty::ScopeType scope,
const std::string& ShortDescription,
- const std::string& FullDescription, bool chained)
+ const std::string& FullDescription, bool chained,
+ const std::string& initializeFromVariable)
{
this->PropertyDefinitions.DefineProperty(name, scope, ShortDescription,
- FullDescription, chained);
+ FullDescription, chained,
+ initializeFromVariable);
}
cmPropertyDefinition const* cmState::GetPropertyDefinition(