BUG: Do not install the import library for an executable that does not have ENABLE_EXPORTS set.

This commit is contained in:
Brad King 2007-06-27 16:14:50 -04:00
parent c0d3ab2d2b
commit 53f39ad566

View File

@ -573,7 +573,8 @@ bool cmInstallCommand::HandleTargetsMode(std::vector<std::string> const& args)
// On DLL platforms an executable may also have an import
// library. Install it to the archive destination if it
// exists.
if(dll_platform && archive_destination)
if(dll_platform && archive_destination &&
target.GetPropertyAsBool("ENABLE_EXPORTS"))
{
// The import library uses the ARCHIVE properties.
archiveGenerator = new cmInstallTargetGenerator(target,