Index: lldb/trunk/CMakeLists.txt =================================================================== --- lldb/trunk/CMakeLists.txt +++ lldb/trunk/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required(VERSION 3.4.3) +include(cmake/LLDBDependencies.cmake) include(cmake/modules/LLDBStandalone.cmake) include(cmake/modules/LLDBConfig.cmake) include(cmake/modules/AddLLDB.cmake) Index: lldb/trunk/cmake/modules/AddLLDB.cmake =================================================================== --- lldb/trunk/cmake/modules/AddLLDB.cmake +++ lldb/trunk/cmake/modules/AddLLDB.cmake @@ -84,10 +84,7 @@ endif() endif() - # 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) + add_dependencies(${name} ${CLANG_USED_LIBS}) set_target_properties(${name} PROPERTIES FOLDER "lldb libraries") endmacro(add_lldb_library)