Skip to content

Commit

Permalink
refactor: replace with INTERFACE, not finished
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed Aug 13, 2024
1 parent 0d55f2b commit 6a319b2
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"cacheVariables": {
"CMAKE_VERBOSE_MAKEFILE": {
"type": "BOOL",
"value": "FALSE"
"value": "TRUE"
},
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
Expand Down
1 change: 1 addition & 0 deletions cmake/compile_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ target_link_options(DEFAULT_KERNEL_LINK_OPTIONS INTERFACE
add_library(DEFAULT_KERNEL_LINK_LIB INTERFACE)
target_link_libraries(DEFAULT_KERNEL_LINK_LIB INTERFACE
COMMON_LINK_LIB
DEFAULT_KERNEL_LINK_OPTIONS

printf_bare_metal
${dtc_BINARY_DIR}/libfdt/libfdt.a
Expand Down
2 changes: 1 addition & 1 deletion src/boot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ add_header_3rd(${PROJECT_NAME})

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_BOOT_LINK_LIB}
DEFAULT_BOOT_LINK_LIB
)

# 添加依赖
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ target_link_options(${PROJECT_NAME} PRIVATE

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
libc
libcxx
arch
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/arch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ target_link_options(${PROJECT_NAME} PRIVATE

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
)
2 changes: 1 addition & 1 deletion src/kernel/libc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ target_link_options(${PROJECT_NAME} PRIVATE

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
)
2 changes: 1 addition & 1 deletion src/kernel/libcxx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ target_link_options(${PROJECT_NAME} PRIVATE

# 添加要链接的库
target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
)
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 @@ -35,7 +35,7 @@ target_link_options(${PROJECT_NAME} PRIVATE
)

target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
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 @@ -30,7 +30,7 @@ target_link_options(${PROJECT_NAME} PRIVATE
)

target_link_libraries(${PROJECT_NAME} PRIVATE
${DEFAULT_KERNEL_LINK_LIB}
DEFAULT_KERNEL_LINK_LIB
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 @@ -34,7 +34,7 @@ target_link_options(${PROJECT_NAME} PRIVATE

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

0 comments on commit 6a319b2

Please sign in to comment.