Skip to content

Commit dcb4330

Browse files
committed
[Offload] Fix dependency issue #126143 in CMake
1 parent 8040003 commit dcb4330

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

offload/DeviceRTL/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ function(compileDeviceRTLLibrary target_name target_triple)
142142
add_library(omptarget.${target_name}.all_objs OBJECT IMPORTED)
143143
set_property(TARGET omptarget.${target_name}.all_objs APPEND PROPERTY IMPORTED_OBJECTS
144144
${LIBOMPTARGET_LLVM_LIBRARY_INTDIR}/libomptarget-${target_name}.bc)
145+
add_dependencies(omptarget.${target_name}.all_objs libomptarget-${target_name})
145146

146147
# Archive all the object files generated above into a static library
147148
add_library(omptarget.${target_name} STATIC)

0 commit comments

Comments
 (0)