Просмотр исходного кода

BUG: Adjustment of install_name with install_name_tool should account for DESTDIR when specifying the file to be changed.

Brad King 19 лет назад
Родитель
Сommit
bfb0ec58e8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmInstallTargetGenerator.cxx

+ 1 - 1
Source/cmInstallTargetGenerator.cxx

@@ -361,7 +361,7 @@ void cmInstallTargetGenerator
       {
       {
       os << "\n    -change \"" << i->first << "\" \"" << i->second << "\"";
       os << "\n    -change \"" << i->first << "\" \"" << i->second << "\"";
       }
       }
-    os << "\n    \"" << destination << "/"
+    os << "\n    \"$ENV{DESTDIR}" << destination << "/"
        << this->GetScriptReference(this->Target, "REMAPPED", true) << "\")\n";
        << this->GetScriptReference(this->Target, "REMAPPED", true) << "\")\n";
     os << "ENDIF(" << component_test << ")\n";
     os << "ENDIF(" << component_test << ")\n";
     }
     }