aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/AddClang.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/AddClang.cmake')
-rw-r--r--cmake/modules/AddClang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/AddClang.cmake b/cmake/modules/AddClang.cmake
index c09a8423f9f6..7e22f16f365b 100644
--- a/cmake/modules/AddClang.cmake
+++ b/cmake/modules/AddClang.cmake
@@ -131,6 +131,7 @@ macro(add_clang_tool name)
endif()
add_clang_executable(${name} ${ARGN})
+ add_dependencies(${name} clang-headers)
if (CLANG_BUILD_TOOLS)
if(${name} IN_LIST LLVM_DISTRIBUTION_COMPONENTS OR