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/cmNinjaTargetGenerator.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/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 5ff4fdb..87f0e3a 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -795,3 +795,10 @@ void cmNinjaTargetGenerator::addPoolNinjaVariable( vars["pool"] = pool; } } + +bool cmNinjaTargetGenerator::ForceResponseFile() +{ + static std::string const forceRspFile = "CMAKE_NINJA_FORCE_RESPONSE_FILE"; + return (this->GetMakefile()->IsDefinitionSet(forceRspFile) || + cmSystemTools::GetEnv(forceRspFile) != 0); +} |