[cmake-commits] king committed cmTarget.cxx 1.104 1.105
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Oct 5 16:30:52 EDT 2006
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv8953/Source
Modified Files:
cmTarget.cxx
Log Message:
ENH: Adding version number to the name of a DLL built in cygwin but not the import library. This addresses bug#3571.
Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -d -r1.104 -r1.105
--- cmTarget.cxx 29 Sep 2006 20:42:58 -0000 1.104
+++ cmTarget.cxx 5 Oct 2006 20:30:47 -0000 1.105
@@ -1255,6 +1255,17 @@
// Append the per-configuration postfix.
outBase += configPostfix?configPostfix:"";
+ // Name shared libraries with their version number on some platforms.
+ if(const char* version = this->GetProperty("VERSION"))
+ {
+ if(type == cmTarget::SHARED_LIBRARY && !implib &&
+ this->Makefile->IsOn("CMAKE_SHARED_LIBRARY_NAME_WITH_VERSION"))
+ {
+ outBase += "-";
+ outBase += version;
+ }
+ }
+
// Append the suffix.
outSuffix = targetSuffix?targetSuffix:"";
}
More information about the Cmake-commits
mailing list