Skip to content

Commit

Permalink
refactor: replace with INTERFACE, boot_link_libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Aug 26, 2024
1 parent 9111882 commit 0792d6e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmake/compile_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ target_link_options(kernel_link_options INTERFACE
>
)

add_library(DEFAULT_KERNEL_LINK_LIB INTERFACE)
target_link_libraries(DEFAULT_KERNEL_LINK_LIB INTERFACE
add_library(kernel_link_libraries INTERFACE)
target_link_libraries(kernel_link_libraries INTERFACE
link_libraries
kernel_compile_definitions
kernel_compile_options
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ target_include_directories(kernel PRIVATE

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
DEFAULT_KERNEL_LINK_LIB
kernel_link_libraries
libc
libcxx
arch
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/cxx_init_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
)

target_link_libraries(${PROJECT_NAME} PRIVATE
DEFAULT_KERNEL_LINK_LIB
kernel_link_libraries
libc
libcxx
)
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/gnu_efi_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ target_include_directories(${PROJECT_NAME} PRIVATE
)

target_link_libraries(${PROJECT_NAME} PRIVATE
DEFAULT_KERNEL_LINK_LIB
kernel_link_libraries
libc
libcxx
)
Expand Down
2 changes: 1 addition & 1 deletion test/system_test/opensbi_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_executable(${PROJECT_NAME}

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
DEFAULT_KERNEL_LINK_LIB
kernel_link_libraries
libc
libcxx
)
Expand Down

0 comments on commit 0792d6e

Please sign in to comment.