summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-26 14:52:35 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-26 14:52:35 (GMT)
commitb80ef72b4d8e76bf5912d6d59a749a2d94bb49b2 (patch)
treed6bbd427e7381689305401b2c4296a2ed8a0b17d /Source/cmNinjaTargetGenerator.cxx
parentfd2ffb42aa8f8927f2ca3bf0c183957da88da2c0 (diff)
parent7605e37aabae2678e5696a75e84aced2e84f9037 (diff)
downloadCMake-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.cxx13
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;
+ }
+}