[lldb/cmake] Enable more verbose find_package output.
authorMatt Davis <nullptr@fb.com>
Fri, 21 Feb 2020 18:33:35 +0000 (10:33 -0800)
committerMatt Davis <nullptr@fb.com>
Fri, 21 Feb 2020 18:37:02 +0000 (10:37 -0800)
commit07d2cdae11633139947f105888163adfd5646ce7
treee6d5d3e0a8f1a98ad7f97ebac7e9fe2d43d7b393
parentdb06870dbd5e85acbd39bb8dc3b2e1c751904f86
[lldb/cmake] Enable more verbose find_package output.

Summary:
The purpose of this patch is to make identifying missing dependencies clearer to the user.
`find_package` will report if a package is not found, that output, combined with the exiting
status message, is clearer than not having the additional verbosity.

If the SWIG dependency is required {LLDB_ENABLE_PYTHON, LLDB_ENABLE_LUA}
and SWIG is not available, fail the configuration step.  Terminate the
configure early rather than later with a clear error message.

We could possibly modify:
`llvm-project/lldb/cmake/modules/FindPythonInterpAndLibs.cmake`
However, the patch here seems clear in my opinion.

Reviewers: aadsm, hhb, JDevlieghere

Reviewed By: JDevlieghere

Subscribers: labath, jrm, mgorny, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D74917
lldb/cmake/modules/FindLuaAndSwig.cmake
lldb/cmake/modules/FindPythonInterpAndLibs.cmake