diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-08-27 16:09:04 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-09-19 19:36:13 (GMT) |
commit | 25c39ac28b42234d08c3906ce24ac739f6111506 (patch) | |
tree | 11e85b319524214585b105947237026eded0d601 /Source/cmGlobalUnixMakefileGenerator3.cxx | |
parent | 516e79ba2722adb662000773e742187815723702 (diff) | |
download | CMake-25c39ac28b42234d08c3906ce24ac739f6111506.zip CMake-25c39ac28b42234d08c3906ce24ac739f6111506.tar.gz CMake-25c39ac28b42234d08c3906ce24ac739f6111506.tar.bz2 |
Convert: Inline HOME_OUTPUT MAKERULE conversion
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator3.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx index c17eb23..52ae469 100644 --- a/Source/cmGlobalUnixMakefileGenerator3.cxx +++ b/Source/cmGlobalUnixMakefileGenerator3.cxx @@ -480,9 +480,10 @@ void cmGlobalUnixMakefileGenerator3::WriteDirectoryRules2( } // Begin the directory-level rules section. - std::string dir = lg->GetCurrentBinaryDirectory(); - dir = lg->Convert(dir, cmOutputConverter::HOME_OUTPUT, - cmOutputConverter::MAKERULE); + std::string dir = cmSystemTools::ConvertToOutputPath( + lg->ConvertToRelativePath(lg->GetBinaryDirectory(), + lg->GetCurrentBinaryDirectory()) + .c_str()); lg->WriteDivider(ruleFileStream); ruleFileStream << "# Directory level rules for directory " << dir << "\n\n"; |