فهرست منبع

Merge topic 'wix-fix-root-dir-prop'

fb009f00 CPackWiX: Work around RelativePath() returning an empty string for the root
Brad King 11 سال پیش
والد
کامیت
c74d2ddfa4
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      Source/CPack/WiX/cmCPackWIXGenerator.cxx

+ 5 - 0
Source/CPack/WiX/cmCPackWIXGenerator.cxx

@@ -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);