Skip to content

Commit e9b24f7

Browse files
authored
Merge pull request #11322 from jimingham/standalone-build-cmake-fix
[lldb][cmake] Create dependencies for LLDB header targets (llvm#150995)
2 parents 49c81b8 + e43ebfb commit e9b24f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/API/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,9 @@ foreach(header
360360
set(copy_command ${CMAKE_COMMAND} -E copy ${header} ${staged_header})
361361
endif()
362362

363+
add_custom_target(liblldb-stage-header-${basename} DEPENDS ${staged_header})
364+
add_dependencies(liblldb-stage-header-${basename} lldb-sbapi-dwarf-enums)
365+
add_dependencies(liblldb-header-staging liblldb-stage-header-${basename})
363366
add_custom_command(
364367
DEPENDS ${header} OUTPUT ${staged_header}
365368
COMMAND ${copy_command}
@@ -371,6 +374,7 @@ foreach(header
371374
set(output_header $<TARGET_FILE_DIR:liblldb>/Headers/${basename})
372375

373376
add_custom_target(lldb-framework-fixup-header-${basename} DEPENDS ${staged_header})
377+
add_dependencies(lldb-framework-fixup-header-${basename} liblldb-stage-header-${basename})
374378
add_dependencies(lldb-framework-fixup-all-headers lldb-framework-fixup-header-${basename})
375379

376380
add_custom_command(TARGET lldb-framework-fixup-header-${basename} POST_BUILD

0 commit comments

Comments
 (0)