diff options
author | Brad King <brad.king@kitware.com> | 2006-02-24 18:13:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-24 18:13:14 (GMT) |
commit | 586a9427d3dd8b4a99f7a3d545814f8b9bf42453 (patch) | |
tree | 82f286d8b7e97066af8c623bff58840ba42c5828 /Source/cmTarget.h | |
parent | 7db7b981afa37cb33c131c3ba1c559bb6d15b1a5 (diff) | |
download | CMake-586a9427d3dd8b4a99f7a3d545814f8b9bf42453.zip CMake-586a9427d3dd8b4a99f7a3d545814f8b9bf42453.tar.gz CMake-586a9427d3dd8b4a99f7a3d545814f8b9bf42453.tar.bz2 |
ENH: Created target property INSTALL_NAME_DIR initalized by CMAKE_INSTALL_NAME_DIR specifying the directory portion of the OSX install_name field in shared libraries. This is the OSX equivalent of RPATH.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index eb455fa..bb4140b 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -157,7 +157,15 @@ public: const char *GetProperty(const char *prop); bool GetPropertyAsBool(const char *prop); - const char* GetDirectory(); + /** Get the directory in which this target will be built. If the + configuration name is given then the generator will add its + subdirectory for that configuration. Otherwise just the canonical + output directory is given. */ + const char* GetDirectory(const char* config = 0); + + /** Get the location of the target in the build tree for the given + configuration. This location is suitable for use as the LOCATION + target property. */ const char* GetLocation(const char* config); /** @@ -222,6 +230,9 @@ public: bool HaveBuildTreeRPATH(); bool HaveInstallTreeRPATH(); + std::string GetInstallNameDirForBuildTree(const char* config); + std::string GetInstallNameDirForInstallTree(const char* config); + private: /** * A list of direct dependencies. Use in conjunction with DependencyMap. |