mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 15:18:26 -05:00
CPackWiX: Work around RelativePath() returning an empty string for the root
This commit is contained in:
@@ -850,6 +850,11 @@ void cmCPackWIXGenerator::AddDirectoryAndFileDefinitons(
|
|||||||
std::string relativeDirectoryPath =
|
std::string relativeDirectoryPath =
|
||||||
cmSystemTools::RelativePath(toplevel.c_str(), topdir.c_str());
|
cmSystemTools::RelativePath(toplevel.c_str(), topdir.c_str());
|
||||||
|
|
||||||
|
if(relativeDirectoryPath.empty())
|
||||||
|
{
|
||||||
|
relativeDirectoryPath = ".";
|
||||||
|
}
|
||||||
|
|
||||||
cmInstalledFile const* directoryInstalledFile =
|
cmInstalledFile const* directoryInstalledFile =
|
||||||
this->GetInstalledFile(relativeDirectoryPath);
|
this->GetInstalledFile(relativeDirectoryPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user