Skip to content

Commit

Permalink
feat: support empty components
Browse files Browse the repository at this point in the history
  • Loading branch information
cuinixam committed Sep 13, 2024
1 parent 3810076 commit d6b2031
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ macro(spl_add_component component_path)
add_subdirectory(${CMAKE_SOURCE_DIR}/${component_path})

if(BUILD_KIT STREQUAL prod)
target_link_libraries(${LINK_TARGET_NAME} ${component_name})
# Only add the target link libraries ${component_name} if the library is defined.
if(TARGET ${component_name})
target_link_libraries(${LINK_TARGET_NAME} ${component_name})
endif()
endif()
endmacro()

Expand Down

0 comments on commit d6b2031

Please sign in to comment.