Merge topic 'install-export-root-prefix'

290e4ce8 install: Fix computed import prefix in export files when it is "/"
This commit is contained in:
Brad King 2016-09-08 09:36:51 -04:00 committed by CMake Topic Stage
commit 04657ee2f8
1 changed files with 4 additions and 1 deletions

View File

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