diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-01-06 12:52:53 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-01-09 10:35:00 (GMT) |
commit | 8ec7408d745a9e17a1e35a4e97e9ab33044832c9 (patch) | |
tree | 7eecc261db167be34f52ce087e61dc3e38e1167b /Source/cmcmd.cxx | |
parent | ce874fbcd6350225ce854a984efd34caf78c3e0f (diff) | |
download | CMake-8ec7408d745a9e17a1e35a4e97e9ab33044832c9.zip CMake-8ec7408d745a9e17a1e35a4e97e9ab33044832c9.tar.gz CMake-8ec7408d745a9e17a1e35a4e97e9ab33044832c9.tar.bz2 |
Makefile dependencies: ensure long paths are used on Windows
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 4c0fbeb..851205e 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -231,11 +231,10 @@ private: bool ProcessLine() override { if (cmHasPrefix(this->Line, this->IncludePrefix)) { - this->DepFile << cmCMakePath( - cmTrimWhitespace(this->Line.c_str() + - this->IncludePrefix.size())) - .GenericString() - << std::endl; + auto path = + cmTrimWhitespace(this->Line.c_str() + this->IncludePrefix.size()); + cmSystemTools::ConvertToLongPath(path); + this->DepFile << cmCMakePath(path).GenericString() << std::endl; } else { this->Output << this->Line << std::endl << std::flush; } |