summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-19 21:10:23 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-19 21:10:23 (GMT)
commit39f4e7f5e0aac2af3e4e02e9d563dbb88757fd8a (patch)
tree6de0a00f3490ded90db8545500edd8f8397cd6c5 /Source
parent96f0266228d8fdf7d420c4a562e6988830fa4996 (diff)
downloadCMake-39f4e7f5e0aac2af3e4e02e9d563dbb88757fd8a.zip
CMake-39f4e7f5e0aac2af3e4e02e9d563dbb88757fd8a.tar.gz
CMake-39f4e7f5e0aac2af3e4e02e9d563dbb88757fd8a.tar.bz2
BUG: Import libraries should be installed as STATIC_LIBRARY.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmInstallTargetGenerator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx
index 7e07597..9db1856 100644
--- a/Source/cmInstallTargetGenerator.cxx
+++ b/Source/cmInstallTargetGenerator.cxx
@@ -140,6 +140,12 @@ void cmInstallTargetGenerator::GenerateScript(std::ostream& os)
break;
}
+ // An import library looks like a static library.
+ if(this->ImportLibrary)
+ {
+ type = cmTarget::STATIC_LIBRARY;
+ }
+
// Write code to install the target file.
this->AddInstallRule(os, this->Destination.c_str(), type, fromFile.c_str(),
this->ImportLibrary, properties);
@@ -170,11 +176,13 @@ std::string cmInstallTargetGenerator::GetInstallReference()
{
if(this->ConfigurationTypes->empty())
{
+ // Reference the target by its one configuration name.
return this->Target->GetFullName(this->ConfigurationName,
this->ImportLibrary);
}
else
{
+ // Reference the target using the per-configuration variable.
std::string ref = "${";
ref += this->Target->GetName();
if(this->ImportLibrary)