summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-02-06 18:34:44 (GMT)
committerBrad King <brad.king@kitware.com>2008-02-06 18:34:44 (GMT)
commit07be6bb87b27cc09ee17ae9b6850f00893eb586e (patch)
treede478766a53a16ab569afee087d6ae4bd58b2b54 /Source/cmTarget.h
parenta752fc5e8500be8a1fc8f5891374f23d125762a3 (diff)
downloadCMake-07be6bb87b27cc09ee17ae9b6850f00893eb586e.zip
CMake-07be6bb87b27cc09ee17ae9b6850f00893eb586e.tar.gz
CMake-07be6bb87b27cc09ee17ae9b6850f00893eb586e.tar.bz2
ENH: When linking to versioned targets whose real file name is known pass the real name to the linker instead of the symlink name.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 5f45c88..11b7671 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -260,7 +260,8 @@ public:
/** Get the full path to the target according to the settings in its
makefile and the configuration type. */
- std::string GetFullPath(const char* config=0, bool implib = false);
+ std::string GetFullPath(const char* config=0, bool implib = false,
+ bool realname = false);
/** Get the names of the library needed to generate a build rule
that takes into account shared library version numbers. This
@@ -437,7 +438,14 @@ private:
const char* NormalGetDirectory(const char* config, bool implib);
std::string ImportedGetFullPath(const char* config, bool implib);
- std::string NormalGetFullPath(const char* config, bool implib);
+ std::string NormalGetFullPath(const char* config, bool implib,
+ bool realname);
+
+ /** Get the real name of the target. Allowed only for non-imported
+ targets. When a library or executable file is versioned this is
+ the full versioned name. If the target is not versioned this is
+ the same as GetFullName. */
+ std::string NormalGetRealName(const char* config);
private:
std::string Name;