summaryrefslogtreecommitdiffstats
path: root/clang/cmake/modules
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2016-10-19 22:46:06 +0000
committerMichael Gottesman <mgottesman@apple.com>2016-10-19 22:46:06 +0000
commit66cc2d52109354871fe6f5079e4577db17b6867d (patch)
treeda0dbf69f7cf837aa54db6b381df854c25266109 /clang/cmake/modules
parent1009b0b30fa791ee686d18498cdf7a7dde0e5c93 (diff)
downloadbcm5719-llvm-66cc2d52109354871fe6f5079e4577db17b6867d.tar.gz
bcm5719-llvm-66cc2d52109354871fe6f5079e4577db17b6867d.zip
[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. llvm-svn: 284658
Diffstat (limited to 'clang/cmake/modules')
-rw-r--r--clang/cmake/modules/AddClang.cmake1
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()
OpenPOWER on IntegriCloud