[libcxx] Link target `cxx_external_threads` to `cxx-headers` for BUILD_EXTERNAL_THREA...
authorDavid Nicuesa <David.Nicuesa@arm.com>
Tue, 1 Sep 2020 11:41:21 +0000 (12:41 +0100)
committerMikhail Maltsev <mikhail.maltsev@arm.com>
Tue, 1 Sep 2020 11:43:44 +0000 (12:43 +0100)
commit722db5c0b4e8dffabbd97265e5ea9edac05548ae
tree726a39796feebf904235e3e2e843327517ca87d6
parentca233be2f0a6623d835d33f1453d3248448ba606
[libcxx] Link target `cxx_external_threads` to `cxx-headers` for BUILD_EXTERNAL_THREAD_LIBRARY

Fix compilation of libcxx when using -DLIBCXX_BUILD_EXTERNAL_THREAD_LIBRARY. Target `cxx_external_threads` gets linked to `cxx-headers` to include all needed headers and flags.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D86773
libcxx/src/CMakeLists.txt