Merge topic 'install-export-root-prefix'
290e4ce8
install: Fix computed import prefix in export files when it is "/"
This commit is contained in:
commit
04657ee2f8
|
@ -122,7 +122,10 @@ bool cmExportInstallFileGenerator::GenerateMainFile(std::ostream& os)
|
|||
"PATH)\n";
|
||||
dest = cmSystemTools::GetFilenamePath(dest);
|
||||
}
|
||||
os << "\n";
|
||||
os << "if(_IMPORT_PREFIX STREQUAL \"/\")\n"
|
||||
<< " set(_IMPORT_PREFIX \"\")\n"
|
||||
<< "endif()\n"
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
std::vector<std::string> missingTargets;
|
||||
|
|
Loading…
Reference in New Issue