summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-01-13 18:00:29 (GMT)
committerBrad King <brad.king@kitware.com>2010-01-13 18:00:29 (GMT)
commitb05ed467497507169091359aa869a1f6e655ac4d (patch)
tree53a014e373b71ce7f6dedcf2f3c6c5ad973c3a61
parent879b47e6ba23b164cba070cc4fc875d828cd3f46 (diff)
downloadCMake-b05ed467497507169091359aa869a1f6e655ac4d.zip
CMake-b05ed467497507169091359aa869a1f6e655ac4d.tar.gz
CMake-b05ed467497507169091359aa869a1f6e655ac4d.tar.bz2
Name Cygwin DLLs with SOVERSION, not VERSION
Cygwin versions .dll files by putting the version number in the file name. Our fix to issue #3571 taught CMake to do this, but it used the VERSION target property. It is better to use the SOVERSION property since that is the interface (rather than implementation) version. Change based on patch from issue #10122.
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 0c8f14a..0436bd0 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3089,13 +3089,13 @@ void cmTarget::GetFullNameInternal(const char* config,
outBase += configPostfix?configPostfix:"";
// Name shared libraries with their version number on some platforms.
- if(const char* version = this->GetProperty("VERSION"))
+ if(const char* soversion = this->GetProperty("SOVERSION"))
{
if(this->GetType() == cmTarget::SHARED_LIBRARY && !implib &&
this->Makefile->IsOn("CMAKE_SHARED_LIBRARY_NAME_WITH_VERSION"))
{
outBase += "-";
- outBase += version;
+ outBase += soversion;
}
}