mirror of
https://github.com/reactos/CMake.git
synced 2025-02-15 17:18:09 +00:00
CPackWiX: Work around RelativePath() returning an empty string for the root
This commit is contained in:
parent
0e0cb710d0
commit
fb009f00ae
@ -850,6 +850,11 @@ void cmCPackWIXGenerator::AddDirectoryAndFileDefinitons(
|
||||
std::string relativeDirectoryPath =
|
||||
cmSystemTools::RelativePath(toplevel.c_str(), topdir.c_str());
|
||||
|
||||
if(relativeDirectoryPath.empty())
|
||||
{
|
||||
relativeDirectoryPath = ".";
|
||||
}
|
||||
|
||||
cmInstalledFile const* directoryInstalledFile =
|
||||
this->GetInstalledFile(relativeDirectoryPath);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user