diff options
author | Brad King <brad.king@kitware.com> | 2008-03-13 17:48:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-13 17:48:57 (GMT) |
commit | f7f03347a64c629149803594b92c2b4b40e783fd (patch) | |
tree | 5035b672977616bb63be8f10fc2605e7dac83741 /Source/cmTarget.h | |
parent | 73df9a5cd4f6ac66ea71c073ce3e01d68c512074 (diff) | |
download | CMake-f7f03347a64c629149803594b92c2b4b40e783fd.zip CMake-f7f03347a64c629149803594b92c2b4b40e783fd.tar.gz CMake-f7f03347a64c629149803594b92c2b4b40e783fd.tar.bz2 |
ENH: Improve new error/warning message generation
- Add cmListFileBacktrace to record stack traces
- Move main IssueMessage method to the cmake class instance
(make the backtrace an explicit argument)
- Change cmMakefile::IssueMessage to construct a backtrace
and call the cmake instance version
- Record a backtrace at the point a target is created
(useful later for messages issued by generators)
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 1b430e6..a8b2863 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -25,6 +25,7 @@ class cmMakefile; class cmSourceFile; class cmGlobalGenerator; class cmComputeLinkInformation; +class cmListFileBacktrace; struct cmTargetLinkInformationMap: public std::map<cmStdString, cmComputeLinkInformation*> @@ -374,6 +375,9 @@ public: /** Return whether this target is an executable Bundle on Apple. */ bool IsAppBundleOnApple(); + /** Get a backtrace from the creation of the target. */ + cmListFileBacktrace const& GetBacktrace() const; + private: /** * A list of direct dependencies. Use in conjunction with DependencyMap. |