diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2014-05-23 18:54:42 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2014-06-05 16:44:17 (GMT) |
commit | efc205695de570c740285b38fbac701f77179ecb (patch) | |
tree | dd950ce696fbecfe4d836066ae8dee76be25fe54 /Source/cmComputeTargetDepends.cxx | |
parent | d46c650d676420a3053ba39e7af8808d581d04ab (diff) | |
download | CMake-efc205695de570c740285b38fbac701f77179ecb.zip CMake-efc205695de570c740285b38fbac701f77179ecb.tar.gz CMake-efc205695de570c740285b38fbac701f77179ecb.tar.bz2 |
cmake: remove dummy backtraces for IssueMessage
Diffstat (limited to 'Source/cmComputeTargetDepends.cxx')
-rw-r--r-- | Source/cmComputeTargetDepends.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmComputeTargetDepends.cxx b/Source/cmComputeTargetDepends.cxx index eb62455..f28217f 100644 --- a/Source/cmComputeTargetDepends.cxx +++ b/Source/cmComputeTargetDepends.cxx @@ -386,15 +386,17 @@ void cmComputeTargetDepends::AddTargetDepend(int depender_index, e << "The dependency target \"" << dependee_name << "\" of target \"" << depender->GetName() << "\" does not exist."; - cmListFileBacktrace nullBacktrace; cmListFileBacktrace const* backtrace = depender->GetUtilityBacktrace(dependee_name); - if(!backtrace) + if(backtrace) { - backtrace = &nullBacktrace; + cm->IssueMessage(messageType, e.str(), *backtrace); + } + else + { + cm->IssueMessage(messageType, e.str()); } - cm->IssueMessage(messageType, e.str(), *backtrace); } } |