summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-08-27 11:44:54 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-08-27 13:21:24 (GMT)
commitee49f006cf657fa6f1c2d112f44d762441fd5cf1 (patch)
tree3c623b7f637e5b604d0e871a5c413b88b7aaea1b /Source/cmLocalNinjaGenerator.cxx
parent51f7dcb0a55874e71e4695f5154548a41c87ad56 (diff)
downloadCMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.zip
CMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.tar.gz
CMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.tar.bz2
Makefiles: Replace ternaries with if()s
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 46d7e18..58c336d 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -486,12 +486,13 @@ std::string cmLocalNinjaGenerator::MakeCustomLauncher(
std::string output;
const std::vector<std::string>& outputs = ccg.GetOutputs();
if (!outputs.empty()) {
- cmOutputConverter::RelativeRoot relative_root =
- ccg.GetWorkingDirectory().empty() ? cmOutputConverter::START_OUTPUT
- : cmOutputConverter::NONE;
-
- output =
- this->Convert(outputs[0], relative_root, cmOutputConverter::SHELL);
+ if (ccg.GetWorkingDirectory().empty()) {
+ output = this->Convert(outputs[0], cmOutputConverter::START_OUTPUT,
+ cmOutputConverter::SHELL);
+ } else {
+ output = this->Convert(outputs[0], cmOutputConverter::NONE,
+ cmOutputConverter::SHELL);
+ }
}
vars.Output = output.c_str();