summaryrefslogtreecommitdiffstats
path: root/Source/cmDependsC.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-09-06 21:02:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-09-19 19:36:13 (GMT)
commit34c6e995f9ac1c62540b68dd50934c8c0be98b7f (patch)
treed68b3f9c23b61a112f41cf3f6a8f2338f5cf03cb /Source/cmDependsC.cxx
parent839c65bca032b80cfa7fe0de2ad35c2448421092 (diff)
downloadCMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.zip
CMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.tar.gz
CMake-34c6e995f9ac1c62540b68dd50934c8c0be98b7f.tar.bz2
Convert: Avoid HOME_OUTPUT enum when converting to relative paths
Diffstat (limited to 'Source/cmDependsC.cxx')
-rw-r--r--Source/cmDependsC.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmDependsC.cxx b/Source/cmDependsC.cxx
index fbbf42f..bc71aac 100644
--- a/Source/cmDependsC.cxx
+++ b/Source/cmDependsC.cxx
@@ -240,7 +240,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
// convert the dependencies to paths relative to the home output
// directory. We must do the same here.
std::string obj_i = this->LocalGenerator->ConvertToRelativePath(
- obj, cmOutputConverter::HOME_OUTPUT);
+ this->LocalGenerator->GetBinaryDirectory(), obj);
std::string obj_m = this->LocalGenerator->ConvertToOutputFormat(
obj_i, cmOutputConverter::MAKERULE);
internalDepends << obj_i << std::endl;