diff options
-rw-r--r-- | lldb/cmake/modules/AddLLDB.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake index dce7a8bd8b8..6e9f4e13c5f 100644 --- a/lldb/cmake/modules/AddLLDB.cmake +++ b/lldb/cmake/modules/AddLLDB.cmake @@ -91,7 +91,10 @@ macro(add_lldb_library name) # Hack: only some LLDB libraries depend on the clang autogenerated headers, # but it is simple enough to make all of LLDB depend on some of those # headers without negatively impacting much of anything. - add_dependencies(${name} libclang) + get_property(CLANG_TABLEGEN_TARGETS GLOBAL PROPERTY CLANG_TABLEGEN_TARGETS) + if(CLANG_TABLEGEN_TARGETS) + add_dependencies(${name} ${CLANG_TABLEGEN_TARGETS}) + endif() set_target_properties(${name} PROPERTIES FOLDER "lldb libraries") endmacro(add_lldb_library) |