diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2013-06-07 18:25:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-01 12:59:38 (GMT) |
commit | 874e17120db832656a77665e2ac13168aaf1e207 (patch) | |
tree | e1dbb5090e053484aae8b84ed47c8dac4b59abcc /Source/cmLocalNinjaGenerator.cxx | |
parent | 88d27ad0140ac2274e886c10ac2bf9f8eede54c7 (diff) | |
download | CMake-874e17120db832656a77665e2ac13168aaf1e207.zip CMake-874e17120db832656a77665e2ac13168aaf1e207.tar.gz CMake-874e17120db832656a77665e2ac13168aaf1e207.tar.bz2 |
Ninja: GlobalNinjaGenerator WriteBuild and WritePhonyBuild non static
To properly track the usage of dependencies that are generated at
compile time as the side effect of other build steps we need
to make the WriteBuild and WritePhonyBuild commands non static
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmLocalNinjaGenerator.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx index 294a539..bdc3d80 100644 --- a/Source/cmLocalNinjaGenerator.cxx +++ b/Source/cmLocalNinjaGenerator.cxx @@ -340,14 +340,15 @@ cmLocalNinjaGenerator::WriteCustomCommandBuildStatement( this->AppendCustomCommandLines(cc, cmdLines); if (cmdLines.empty()) { - cmGlobalNinjaGenerator::WritePhonyBuild(this->GetBuildFileStream(), - "Phony custom command for " + - ninjaOutputs[0], - ninjaOutputs, - ninjaDeps, - cmNinjaDeps(), - orderOnlyDeps, - cmNinjaVars()); + this->GetGlobalNinjaGenerator()->WritePhonyBuild( + this->GetBuildFileStream(), + "Phony custom command for " + + ninjaOutputs[0], + ninjaOutputs, + ninjaDeps, + cmNinjaDeps(), + orderOnlyDeps, + cmNinjaVars()); } else { this->GetGlobalNinjaGenerator()->WriteCustomCommandBuild( this->BuildCommandLine(cmdLines), |