diff options
author | Michael Gottesman <mgottesman@apple.com> | 2016-10-19 22:46:06 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2016-10-19 22:46:06 +0000 |
commit | a0bb47866878f06a6e827749871d9b33f82776c2 (patch) | |
tree | 2681391af780830581bb50b7f5ae009db0ee5616 /clang/cmake | |
parent | 8b7b23ad417f049ab9bf174cf7d182370fd4b929 (diff) |
[cmake] Follow LLVM's lead in creating exported tool targets for clang tools.
This is needed by downstream projects such as swift to get proper cmake
dependency information for LLVM/Clang targets.
A few months ago I added support for exporting this information for Clang
libraries. In order to be incremental, I did not add support for exporting clang
tools as well at that time. Now such support is needed, so I am committing this
incremental code.
Diffstat (limited to 'clang/cmake')
-rw-r--r-- | clang/cmake/modules/AddClang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake index 6e063a706bf..88ee1f71ed7 100644 --- a/clang/cmake/modules/AddClang.cmake +++ b/clang/cmake/modules/AddClang.cmake @@ -139,6 +139,7 @@ macro(add_clang_tool name) -DCMAKE_INSTALL_COMPONENT=${name} -P "${CMAKE_BINARY_DIR}/cmake_install.cmake") endif() + set_property(GLOBAL APPEND PROPERTY CLANG_EXPORTS ${name}) endif() endmacro() |