diff options
author | Dmitry Ivanov <dmitry.ivanov@king.com> | 2016-04-06 10:55:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-07 13:45:26 (GMT) |
commit | 24c9106b7b2c3729985b89b06a2732ee3f555022 (patch) | |
tree | e4f99e83aca07a4f0a00226231fd899a142a17ee /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 82c405c4737236ac0c954134d9cbc815823e2409 (diff) | |
download | CMake-24c9106b7b2c3729985b89b06a2732ee3f555022.zip CMake-24c9106b7b2c3729985b89b06a2732ee3f555022.tar.gz CMake-24c9106b7b2c3729985b89b06a2732ee3f555022.tar.bz2 |
cmNinjaTargetGenerator: Factor out helper for forced response file check
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index c34df3c..54cacef 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -698,9 +698,7 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement() cmGlobalNinjaGenerator& globalGen = *this->GetGlobalGenerator(); int commandLineLengthLimit = 1; - const char* forceRspFile = "CMAKE_NINJA_FORCE_RESPONSE_FILE"; - if (!mf->IsDefinitionSet(forceRspFile) && - cmSystemTools::GetEnv(forceRspFile) == 0) + if (!this->ForceResponseFile()) { commandLineLengthLimit = calculateCommandLineLengthLimit( globalGen.GetRuleCmdLength(this->LanguageLinkerRule())); |