[LLDB] Fix building without SWIG
authorMartin Storsjö <martin@martin.st>
Sun, 22 Dec 2019 08:01:09 +0000 (10:01 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 22 Dec 2019 08:04:56 +0000 (10:04 +0200)
commit9a3fab97468f9555a770707e23a4c424bfd696c2
treee06ef54500a7ac7292ca82763a65a13dc4c18f4a
parent527b0f8c7448707aa6b8159e6e4707a49f1dcb87
[LLDB] Fix building without SWIG

Previously, SWIG was only a hard dependency if python bindings were
enabled.

Since bf03e17c570171c7a52117fe63ace89d58f328d5, scripts/CMakeLists.txt
is included unconditionally, while that file adds the hard dependency
on SWIG.

Instead, only include that file if either python or lua bindings are
enabled.
lldb/CMakeLists.txt