Skip to content

Commit 98d1da8

Browse files
fix dependency issue
1 parent 421cedb commit 98d1da8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ foreach(mod ${MODULE_DIRS})
118118
add_custom_command(OUTPUT ${MOD_OUT}
119119
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/iso/system/modules
120120
COMMAND ${CMAKE_LINKER} -r -o ${MOD_OUT} $<TARGET_OBJECTS:mod_${mod}>
121-
DEPENDS $<TARGET_OBJECTS:mod_${mod}>
121+
DEPENDS mod_${mod}
122122
VERBATIM
123123
)
124124

125125
add_custom_target(module_${mod} ALL DEPENDS ${MOD_OUT})
126+
add_dependencies(module_${mod} mod_${mod})
126127
add_dependencies(ISO module_${mod})
127128
list(APPEND MODULE_TARGETS module_${mod})
128129
list(APPEND MODULE_KO_FILES ${MOD_OUT})

0 commit comments

Comments
 (0)