summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-10 13:50:09 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-10 13:50:09 (GMT)
commitd0ed46e3d66beead514ee8d95789b5ee56151812 (patch)
treebf28abb292ab6bd29a3f4452bc734cd4dca8263f /Source/cmTarget.h
parentffba5b14aec7dd3c63cea507de2d4694b2c49d38 (diff)
downloadCMake-d0ed46e3d66beead514ee8d95789b5ee56151812.zip
CMake-d0ed46e3d66beead514ee8d95789b5ee56151812.tar.gz
CMake-d0ed46e3d66beead514ee8d95789b5ee56151812.tar.bz2
ENH: Define target-specific support directories
This creates method cmTarget::GetSupportDirectory to compute a target-specific support directory in the build tree. It uses the "CMakeFiles/<name>.dir" convention already used by the Makefile generators. The method will be useful for any code that needs to generate per-target information into the build tree for use by CMake tools that do not run at generate time.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index dce4feb..23ef9dc 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -415,6 +415,9 @@ public:
/** Get a backtrace from the creation of the target. */
cmListFileBacktrace const& GetBacktrace() const;
+ /** Get a build-tree directory in which to place target support files. */
+ std::string GetSupportDirectory() const;
+
private:
/**
* A list of direct dependencies. Use in conjunction with DependencyMap.