[lldb] Add LLVM include dirs prior to gtest target in standalone build
authorMichał Górny <mgorny@gentoo.org>
Sun, 23 Oct 2022 12:52:22 +0000 (14:52 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 24 Oct 2022 10:18:14 +0000 (12:18 +0200)
commitd15239388cca8a5031119b4660e456c26ca5f379
tree34de7096d11c7a1f69a65eff2a8986f65db5e9c4
parent8d06ef5658187bf6a3eda61a5ec3627c1ff33fb8
[lldb] Add LLVM include dirs prior to gtest target in standalone build

Move include_directories() declaration before gtest targets are created
in standalone build.  This fixes build failure due to gtest targets
being unable to find LLVM headers, e.g.:

    /var/tmp/portage/dev-util/lldb-16.0.0_pre20221023/work/llvm/utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h:43:10: fatal error: llvm/ADT/Optional.h: No such file or directory

Differential Revision: https://reviews.llvm.org/D136552
lldb/cmake/modules/LLDBStandalone.cmake