Index: llvm/trunk/cmake/modules/AddLLVM.cmake =================================================================== --- llvm/trunk/cmake/modules/AddLLVM.cmake +++ llvm/trunk/cmake/modules/AddLLVM.cmake @@ -448,6 +448,9 @@ list(APPEND objlibs ${obj_name}) set_target_properties(${obj_name} PROPERTIES FOLDER "Object Libraries") + if(ARG_DEPENDS) + add_dependencies(${obj_name} ${ARG_DEPENDS}) + endif() endif() if(ARG_SHARED AND ARG_STATIC)