summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2007-08-24 17:30:41 (GMT)
committerDavid Cole <david.cole@kitware.com>2007-08-24 17:30:41 (GMT)
commit9a4e7ea742e7ff8e1110f3fe55e98340cb309aef (patch)
tree1de0114f0f0f2fc3ac8ac9a2d92770a6e08ea281 /Source/cmTarget.h
parent6d508a3094c31910728b24e13ceebbc3070b5e04 (diff)
downloadCMake-9a4e7ea742e7ff8e1110f3fe55e98340cb309aef.zip
CMake-9a4e7ea742e7ff8e1110f3fe55e98340cb309aef.tar.gz
CMake-9a4e7ea742e7ff8e1110f3fe55e98340cb309aef.tar.bz2
ENH: Add InstallNameFixupPath to support installing built frameworks on the Mac. Change Application to Applications in the BundleTest. Also correct small typo (tcl->Tcl) noted in bug 4572.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 4b59e8b..be0ed65 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -137,7 +137,7 @@ public:
*/
std::string GetRuntimeInstallPath() {return this->RuntimeInstallPath;}
void SetRuntimeInstallPath(const char *name) {
- this->RuntimeInstallPath = name;}
+ this->RuntimeInstallPath = name; }
/**
* Get/Set whether there is an install rule for this target.
@@ -145,6 +145,18 @@ public:
bool GetHaveInstallRule() { return this->HaveInstallRule; }
void SetHaveInstallRule(bool h) { this->HaveInstallRule = h; }
+ /**
+ * Get/Set the path needed for calls to install_name_tool regarding this
+ * target. Used to support fixing up installed libraries and executables on
+ * the Mac (including bundles and frameworks). Only used if the target does
+ * not have an INSTALL_NAME_DIR property.
+ * See cmInstallTargetGenerator::AddInstallNamePatchRule and callers for
+ * more information.
+ */
+ std::string GetInstallNameFixupPath() { return this->InstallNameFixupPath; }
+ void SetInstallNameFixupPath(const char *path) {
+ this->InstallNameFixupPath = path; }
+
/** Add a utility on which this project depends. A utility is an executable
* name as would be specified to the ADD_EXECUTABLE or UTILITY_SOURCE
* commands. It is not a full path nor does it have an extension.
@@ -382,6 +394,7 @@ private:
std::vector<std::string> LinkDirectories;
std::vector<std::string> ExplicitLinkDirectories;
bool HaveInstallRule;
+ std::string InstallNameFixupPath;
std::string InstallPath;
std::string RuntimeInstallPath;
std::string OutputDir;