diff options
author | Chris Bieneman <beanz@apple.com> | 2017-07-28 15:33:47 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2017-07-28 15:33:47 +0000 |
commit | db2a5b1484724b949c85a4e590a06ed813123e73 (patch) | |
tree | c9e81a5f2562b5f6c3080dd549a29bcb7433aa70 /CMakeLists.txt | |
parent | 6378f1a4285fd1eecc4c4129b9d667df9c7edb83 (diff) |
[CMake] NFC. Add clang-tablegen-targets utility target
By creating this target other projects that depend on clang-generated headers (like LLDB) will no longer be order-dependent on Clang being processed by CMake first.
Also, by creating a dummy of this target in ClangConfig.cmake, projects that can build against out-of-tree clang can freely depend on the target without needing to have conditionals for if clang is in-tree or out-of-tree.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309390 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d303ee475..8f26f2d6bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -412,7 +412,8 @@ add_subdirectory(include) # All targets below may depend on all tablegen'd files. get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS) -list(APPEND LLVM_COMMON_DEPENDS ${CLANG_TABLEGEN_TARGETS}) +add_custom_target(clang-tablegen-targets DEPENDS ${CLANG_TABLEGEN_TARGETS}) +list(APPEND LLVM_COMMON_DEPENDS clang-tablegen-targets) # Force target to be built as soon as possible. Clang modules builds depend # header-wise on it as they ship all headers from the umbrella folders. Building |