[CMake] Store path to vendor-specific headers in clang-headers target property
authorStefan Granitz <stefan.graenitz@gmail.com>
Mon, 3 Dec 2018 10:34:25 +0000 (10:34 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Mon, 3 Dec 2018 10:34:25 +0000 (10:34 +0000)
commit5c1ec2e9cb42c02db2b3f5439bbdda042b3bb886
tree6003acc1100156124ae3ff9990fcf9e9d8dbd49e
parent6d85c5832813c043216360abc56cb2c0a9207006
[CMake] Store path to vendor-specific headers in clang-headers target property

Summary:
LLDB.framework wants a copy these headers. With this change LLDB can easily glob for the list of files:
```
get_target_property(clang_include_dir clang-headers RUNTIME_OUTPUT_DIRECTORY)
file(GLOB_RECURSE clang_vendor_headers RELATIVE ${clang_include_dir} "${clang_include_dir}/*")
```

By default `RUNTIME_OUTPUT_DIRECTORY` is unset for custom targets like `clang-headers`.

Reviewers: aprantl, JDevlieghere, davide, friss, dexonsmith

Reviewed By: JDevlieghere

Subscribers: mgorny, #lldb, cfe-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D55128

llvm-svn: 348116
clang/lib/Headers/CMakeLists.txt