summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-03 13:42:48 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-03 13:42:48 (GMT)
commit441d208bb323b49bc7a42036d17fb5eb2a9cba48 (patch)
tree6bd8a4c10987d0c1b5cefe2f71a65fed2adf2160 /Source/cmTarget.cxx
parent24b55bfe11db52b37795b241272b0a1511e12bd5 (diff)
downloadCMake-441d208bb323b49bc7a42036d17fb5eb2a9cba48.zip
CMake-441d208bb323b49bc7a42036d17fb5eb2a9cba48.tar.gz
CMake-441d208bb323b49bc7a42036d17fb5eb2a9cba48.tar.bz2
ENH: Added target property CLEAN_DIRECT_OUTPUT to not clean all forms of a library name so that static and shared libraries of the same name can coexist in a single build directory.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index c895907..a5515f4 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1158,6 +1158,17 @@ void cmTarget::GetFullNameInternal(TargetType type,
return;
}
+ // Return an empty name for the import library if this platform
+ // does not support import libraries.
+ if(implib &&
+ !this->Makefile->GetDefinition("CMAKE_IMPORT_LIBRARY_SUFFIX"))
+ {
+ outPrefix = "";
+ outBase = "";
+ outSuffix = "";
+ return;
+ }
+
// The implib option is only allowed for shared libraries.
if(type != cmTarget::SHARED_LIBRARY)
{