From 39f4e7f5e0aac2af3e4e02e9d563dbb88757fd8a Mon Sep 17 00:00:00 2001 From: Brad King Date: Sun, 19 Feb 2006 16:10:23 -0500 Subject: [PATCH] BUG: Import libraries should be installed as STATIC_LIBRARY. --- Source/cmInstallTargetGenerator.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index 7e0759732..9db185607 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)