diff options
author | Brad King <brad.king@kitware.com> | 2018-09-07 20:07:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-09-07 20:08:02 (GMT) |
commit | 917d98699e8dd13de89e2993b0b630cf64f17706 (patch) | |
tree | 1ad51b87b52747e90ec15698eb613a0afe2a75f8 /Source/cmOptionCommand.cxx | |
parent | 424d86be5b332d2f5b85dfd2ba2900430f7e02c3 (diff) | |
parent | 437d0c16c72a45da8c81919f953859f5af71b19b (diff) | |
download | CMake-917d98699e8dd13de89e2993b0b630cf64f17706.zip CMake-917d98699e8dd13de89e2993b0b630cf64f17706.tar.gz CMake-917d98699e8dd13de89e2993b0b630cf64f17706.tar.bz2 |
Merge topic 'definitions-get'
437d0c16c7 cmStateSnapshot::GetDefinition(): Return std::string const*
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2356
Diffstat (limited to 'Source/cmOptionCommand.cxx')
-rw-r--r-- | Source/cmOptionCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx index 816f06c..006211d 100644 --- a/Source/cmOptionCommand.cxx +++ b/Source/cmOptionCommand.cxx @@ -31,7 +31,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args, bool checkAndWarn = false; { auto status = this->Makefile->GetPolicyStatus(cmPolicies::CMP0077); - const char* existsBeforeSet = + const auto* existsBeforeSet = this->Makefile->GetStateSnapshot().GetDefinition(args[0]); switch (status) { case cmPolicies::WARN: @@ -72,7 +72,7 @@ bool cmOptionCommand::InitialPass(std::vector<std::string> const& args, args[1].c_str(), cmStateEnums::BOOL); if (checkAndWarn) { - const char* existsAfterSet = + const auto* existsAfterSet = this->Makefile->GetStateSnapshot().GetDefinition(args[0]); if (!existsAfterSet) { std::ostringstream w; |