summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-09 08:47:43 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-09 08:47:43 (GMT)
commit009019f2596de08c488588fd2c67a423f9fe92bf (patch)
treec9700c25fb3b7eb46dccc578670ab464ac67fc79 /Source/cmLocalUnixMakefileGenerator3.cxx
parent378849f41e574e72c577b549dfc2d5333ca8f9b5 (diff)
downloadCMake-009019f2596de08c488588fd2c67a423f9fe92bf.zip
CMake-009019f2596de08c488588fd2c67a423f9fe92bf.tar.gz
CMake-009019f2596de08c488588fd2c67a423f9fe92bf.tar.bz2
Makefiles: Extract identical code from condition
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index eebab68..02eef59 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -999,12 +999,9 @@ void cmLocalUnixMakefileGenerator3::AppendCustomCommand(
if (workingDir.empty()) {
output = this->MaybeConvertToRelativePath(
this->GetCurrentBinaryDirectory(), output);
- output =
- this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
- } else {
- output =
- this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
}
+ output =
+ this->ConvertToOutputFormat(output, cmOutputConverter::SHELL);
}
vars.Output = output.c_str();