diff options
author | Brad King <brad.king@kitware.com> | 2016-04-15 14:08:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-04-15 14:13:08 (GMT) |
commit | da07c506b9044e89ad9d904450aa590bb260bd78 (patch) | |
tree | cda4fe7a49dd50f2ddc35efbf3a5c8122f0a1125 /Source/cmLocalGenerator.cxx | |
parent | cc7aed77a8774c565c8bc6c4965f10e3560f8d64 (diff) | |
download | CMake-da07c506b9044e89ad9d904450aa590bb260bd78.zip CMake-da07c506b9044e89ad9d904450aa590bb260bd78.tar.gz CMake-da07c506b9044e89ad9d904450aa590bb260bd78.tar.bz2 |
cmLocalGenerator: Simplify IssueMessage implementation
This method was added by commit v3.4.0-rc1~424^2~6 (cmLocalGenerator:
Add IssueMessage method, 2015-06-13) in order to reduce callers'
dependency on cmMakefile. Currently the implementation of
cmLocalGenerator::IssueMessage is just a copy of the post-configure code
path in cmMakefile::IssueMessage. De-duplicate the implementation by
simply calling the cmMakefile copy for now. This will simplify upcoming
refactoring of backtraces. The dependency on cmMakefile can be removed
by future work once that is done.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 746bcab..b93fc21 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -69,17 +69,7 @@ cmLocalGenerator::~cmLocalGenerator() void cmLocalGenerator::IssueMessage(cmake::MessageType t, std::string const& text) const { - cmListFileContext lfc; - lfc.FilePath = this->StateSnapshot.GetDirectory().GetCurrentSource(); - lfc.FilePath += "/CMakeLists.txt"; - - if(!this->GlobalGenerator->GetCMakeInstance()->GetIsInTryCompile()) - { - cmOutputConverter converter(this->StateSnapshot); - lfc.FilePath = converter.Convert(lfc.FilePath, cmLocalGenerator::HOME); - } - lfc.Line = 0; - this->GlobalGenerator->GetCMakeInstance()->IssueMessage(t, text, lfc); + this->Makefile->IssueMessage(t, text); } //---------------------------------------------------------------------------- |