ENH: Cleanup output

This commit is contained in:
Andy Cedilnik 2004-02-03 10:25:51 -05:00
parent 59adb4eabe
commit a721b96407
1 changed files with 3 additions and 1 deletions

View File

@ -254,8 +254,10 @@ void cmLocalGenerator::AddInstallRule(std::ostream& fout, const char* dest,
case cmTarget::INSTALL_FILES:
default: stype = "FILE"; break;
}
std::string fname = cmSystemTools::GetFilenameName(sfiles.c_str());
fout
<< "MESSAGE(STATUS \"Install " << stype << ": " << sfiles.c_str() << "\")\n"
<< "MESSAGE(STATUS \"Installing " << destination.c_str()
<< "/" << fname.c_str() << "\")\n"
<< "FILE(INSTALL DESTINATION \"" << destination.c_str()
<< "\" TYPE " << stype.c_str() << (optional?" OPTIONAL":"")
<< " FILES \"" << sfiles.c_str() << "\")\n";