diff options
author | Brad King <brad.king@kitware.com> | 2007-03-09 14:30:16 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-09 14:30:16 (GMT) |
commit | 528f60f4a60440097a4a4997cdf59f0e564ba370 (patch) | |
tree | aa22bf1a28cf33e62664cac46a33c43f0727a70f /Source/cmMakefileLibraryTargetGenerator.cxx | |
parent | 3ec0ff05de74dc2a51461b0345d0d0e6fe0786b6 (diff) | |
download | CMake-528f60f4a60440097a4a4997cdf59f0e564ba370.zip CMake-528f60f4a60440097a4a4997cdf59f0e564ba370.tar.gz CMake-528f60f4a60440097a4a4997cdf59f0e564ba370.tar.bz2 |
ENH: Added implib option to cmTarget::GetDirectory to support a separate directory containing the import library. This is an incremental step for bug#4210.
Diffstat (limited to 'Source/cmMakefileLibraryTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileLibraryTargetGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmMakefileLibraryTargetGenerator.cxx b/Source/cmMakefileLibraryTargetGenerator.cxx index 786afa3..3d0f092 100644 --- a/Source/cmMakefileLibraryTargetGenerator.cxx +++ b/Source/cmMakefileLibraryTargetGenerator.cxx @@ -246,6 +246,7 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules // Construct the full path version of the names. std::string outpath; + std::string outpathImp; if(relink) { outpath = this->Makefile->GetStartOutputDirectory(); @@ -253,17 +254,20 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules outpath += "/CMakeRelink.dir"; cmSystemTools::MakeDirectory(outpath.c_str()); outpath += "/"; + outpathImp = outpath; } else { outpath = this->Target->GetDirectory(); outpath += "/"; + outpathImp = this->Target->GetDirectory(0, true); + outpathImp += "/"; } std::string targetFullPath = outpath + targetName; std::string targetFullPathPDB = outpath + targetNamePDB; std::string targetFullPathSO = outpath + targetNameSO; std::string targetFullPathReal = outpath + targetNameReal; - std::string targetFullPathImport = outpath + targetNameImport; + std::string targetFullPathImport = outpathImp + targetNameImport; // Construct the output path version of the names for use in command // arguments. |