diff options
author | Brad King <brad.king@kitware.com> | 2011-12-01 21:21:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-06 19:19:44 (GMT) |
commit | 96f65ba68e82b64eac67b75282bbcab8103c0eb0 (patch) | |
tree | f3bd1e3e25df56e2c3ba124730ba0ba199d60e9d /Source/cmTarget.h | |
parent | 9401da808446b1746c75e81b9b6056b96a122fe9 (diff) | |
download | CMake-96f65ba68e82b64eac67b75282bbcab8103c0eb0.zip CMake-96f65ba68e82b64eac67b75282bbcab8103c0eb0.tar.gz CMake-96f65ba68e82b64eac67b75282bbcab8103c0eb0.tar.bz2 |
cmTarget: Create helper method for versioned library names
Replace the duplicate logic for the realName and soName of versioned
shared libraries with calls to a new ComputeVersionedName method.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 0abdddb..9ef64f5 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -557,6 +557,7 @@ private: cmPropertyMap Properties; LinkLibraryVectorType OriginalLinkLibraries; bool DLLPlatform; + bool IsApple; bool IsImportedTarget; // Cache target output paths for each configuration. @@ -595,6 +596,12 @@ private: cmTargetInternalPointer Internal; void ConstructSourceFileFlags(); + void ComputeVersionedName(std::string& vName, + std::string const& prefix, + std::string const& base, + std::string const& suffix, + std::string const& name, + const char* version); }; typedef std::map<cmStdString,cmTarget> cmTargets; |