summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-06-27 20:14:50 (GMT)
committerBrad King <brad.king@kitware.com>2007-06-27 20:14:50 (GMT)
commit53f39ad566ec7b9b3c118164d5330c0d17dd18c1 (patch)
tree3a08b25e0e95fc3bb06b4460b0294d62ae291720 /Source/cmInstallCommand.cxx
parentc0d3ab2d2b6a0e8d6cb1d380c7f1987f0a64a0f0 (diff)
downloadCMake-53f39ad566ec7b9b3c118164d5330c0d17dd18c1.zip
CMake-53f39ad566ec7b9b3c118164d5330c0d17dd18c1.tar.gz
CMake-53f39ad566ec7b9b3c118164d5330c0d17dd18c1.tar.bz2
BUG: Do not install the import library for an executable that does not have ENABLE_EXPORTS set.
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index 53a4173..dbe8d49 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -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,