diff options
author | Brad King <brad.king@kitware.com> | 2013-11-26 14:52:35 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-11-26 14:52:35 (GMT) |
commit | b80ef72b4d8e76bf5912d6d59a749a2d94bb49b2 (patch) | |
tree | d6bbd427e7381689305401b2c4296a2ed8a0b17d /Source/cmNinjaTargetGenerator.cxx | |
parent | fd2ffb42aa8f8927f2ca3bf0c183957da88da2c0 (diff) | |
parent | 7605e37aabae2678e5696a75e84aced2e84f9037 (diff) | |
download | CMake-b80ef72b4d8e76bf5912d6d59a749a2d94bb49b2.zip CMake-b80ef72b4d8e76bf5912d6d59a749a2d94bb49b2.tar.gz CMake-b80ef72b4d8e76bf5912d6d59a749a2d94bb49b2.tar.bz2 |
Merge topic 'ninja-compile-link-pool'
7605e37 Ninja: job pool support for compiling and linking
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 3f95e6b..e3c058f 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -573,6 +573,8 @@ cmNinjaTargetGenerator ConvertToNinjaPath(objectDir.c_str()).c_str(), cmLocalGenerator::SHELL); + this->addPoolNinjaVariable("JOB_POOL_COMPILE", this->GetTarget(), vars); + this->SetMsvcTargetPdbVariable(vars); if(this->Makefile->IsOn("CMAKE_EXPORT_COMPILE_COMMANDS")) @@ -726,3 +728,14 @@ cmNinjaTargetGenerator::MacOSXContentGeneratorType::operator()( // Add as a dependency of all target so that it gets called. this->Generator->GetGlobalGenerator()->AddDependencyToAll(output); } + +void cmNinjaTargetGenerator::addPoolNinjaVariable(const char* pool_property, + cmTarget* target, + cmNinjaVars& vars) +{ + const char* pool = target->GetProperty(pool_property); + if (pool) + { + vars["pool"] = pool; + } +} |