diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-22 20:27:18 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2021-02-23 14:14:31 (GMT) |
commit | 3a9550351200e6bfbda993b0ec3064bddb894b69 (patch) | |
tree | c08561efc8077db36f47f0fcc626dbb71fa0c3cc | |
parent | f01f10e8fbe2f740e210f467877f6d6b8e8d7e1f (diff) | |
download | CMake-3a9550351200e6bfbda993b0ec3064bddb894b69.zip CMake-3a9550351200e6bfbda993b0ec3064bddb894b69.tar.gz CMake-3a9550351200e6bfbda993b0ec3064bddb894b69.tar.bz2 |
Ninja: Use CMP0116 status recorded at time of custom command's creation
-rw-r--r-- | Source/cmLocalNinjaGenerator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index b8ad1a0..8ed411a 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -658,7 +658,7 @@ void cmLocalNinjaGenerator::WriteCustomCommandBuildStatement( std::string depfile = cc->GetDepfile(); if (!depfile.empty()) { - switch (this->GetPolicyStatus(cmPolicies::CMP0116)) { + switch (cc->GetCMP0116Status()) { case cmPolicies::WARN: if (this->GetCurrentBinaryDirectory() != this->GetBinaryDirectory() || @@ -772,7 +772,7 @@ cmLocalNinjaGenerator::MakeCustomCommandGenerators( cmGlobalNinjaGenerator const* gg = this->GetGlobalNinjaGenerator(); bool transformDepfile = false; - switch (this->GetPolicyStatus(cmPolicies::CMP0116)) { + switch (cc.GetCMP0116Status()) { case cmPolicies::OLD: case cmPolicies::WARN: break; |