diff options
author | David Cole <david.cole@kitware.com> | 2007-08-24 17:30:41 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2007-08-24 17:30:41 (GMT) |
commit | 9a4e7ea742e7ff8e1110f3fe55e98340cb309aef (patch) | |
tree | 1de0114f0f0f2fc3ac8ac9a2d92770a6e08ea281 /Source/cmTarget.h | |
parent | 6d508a3094c31910728b24e13ceebbc3070b5e04 (diff) | |
download | CMake-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.h | 15 |
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; |