diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 11:44:54 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-08-27 13:21:24 (GMT) |
commit | ee49f006cf657fa6f1c2d112f44d762441fd5cf1 (patch) | |
tree | 3c623b7f637e5b604d0e871a5c413b88b7aaea1b /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 51f7dcb0a55874e71e4695f5154548a41c87ad56 (diff) | |
download | CMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.zip CMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.tar.gz CMake-ee49f006cf657fa6f1c2d112f44d762441fd5cf1.tar.bz2 |
Makefiles: Replace ternaries with if()s
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 53c9aa1..917d8d5 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -990,10 +990,14 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand( std::string output; const std::vector<std::string>& outputs = ccg.GetOutputs(); if (!outputs.empty()) { - output = this->Convert(outputs[0], workingDir.empty() - ? cmOutputConverter::START_OUTPUT - : cmOutputConverter::NONE, - cmOutputConverter::SHELL); + if (workingDir.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(); |