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.

This commit is contained in:
David Cole
2007-08-24 13:30:41 -04:00
parent 6d508a3094
commit 9a4e7ea742
8 changed files with 106 additions and 44 deletions

View File

@@ -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;